Euu Structured Mapper is a simple and experimental data transformation library for PHP.
This project aims to simplify defining transformation rules using attributes and performing data type conversions. It also provides an extremely simple structure for ease of use.
MapperRegistry and MapperInterface).ValueTransformer/ArrayItemTransform/ArrayItemTransformer.php).ValueTransformer/ObjectTransform/WithMapper.php).Add Euu Structured Mapper to your project using Composer:
composer require emreuyguc/structured-mapper
For detailed examples, refer to the example/ExampleFactory.php file. Initialize the mapper according to your own usage scenarios.
example/MapFromExample.phpexample/MapToExample.phpexample/Dto/example/Entity/a -> b transformations are defined, reverse (b -> a) is theoretically possible but not currently supported (Priority: Medium).type_enforcement parameter to false for simple conversions (Priority: Low).canMap method can be added for checking mappings (Priority: High).This package is licensed under the MIT License.
How can I help you explore Laravel packages today?