Download the PHP package zelak/mapper without Composer
On this page you can find all versions of the php package zelak/mapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package mapper
Zelak's Mapper
Installation
Usage
Creating simple DTOs
DTOs needs type hinting for the Mapper to work properly
Creating the mapper, registering and using the Mapper
Result
Creating linked DTOs
Creating the mapper, registering and using the Mapper
Result
Creating linked array DTOs
Creating the mapper and registering the Mapper Since ProductArrDto uses an array we need to specify which class it needs to use\ We do this by using the specify function when creating the Map
Result
Docs
Mapper Class
Create a map for the a class
Map object to a registered class
MappedClass Class
Customize the transformation from the Object to the class
Example
Result
Ignore a property from the object
Example
Result
Specify a linked array to a DTO
Rename a property
Creating the mapper, registering and using the Mapper
Result
Array Assoc to array with specific property
Creating the mapper, registering and using the Mapper
Result
All versions of mapper with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package zelak/mapper contains the following files
Loading the files please wait ....