rekalogika/mapper
An object mapper for PHP and Symfony. Maps an object to another object. Also commonly known as an automapper. Primarily used for transforming an entity to a DTO and vice versa.
Sections
📄️ Introduction
rekalogika/mapper is an object mapper for PHP and Symfony, also commonly known
📄️ Installation & Basic Usage
Install and use the mapper.
📄️ Mapping Object to Object
Mapping an object to another object is the most common task done by a mapper.
📄️ Mapping Arrays & Array-Like Objects
This chapter describes how to map arrays and array-like objects.
📄️ Mapping Between Object and Array
Mapping between an object and an array follows the same semantics as [mapping
📄️ Context and Mapping Options
Provide context variables to the mapper to control the mapping process.
📄️ Manual Mapping using an Object Mapper
If you need a custom logic in an object to another object mapping, one way to do
📄️ Manual Mapping using a Class Factory Method
This mapping method is deprecated.
📄️ Predetermined Mapping Preset
The user can provide a list of predetermined mapping between objects to Mapper.
📄️ Architecture
This chapter describes the architecture of the library.
📄️ Mapping Table
When we tell the mapper to map a source to a target, it will look up the mapping
📄️ Creating a Custom Transformer
Extend the mapper by creating your own transformer.
📄️ Overriding a Mapping Table Entry
If the mapper chooses the wrong transformer for a specific source and target
📄️ SubMapper
SubMapper is a highly simplified mapper used in places where you might need to
📄️ Debugging the Mapper
Command Line
🗃️ Cookbook
1 items
📄️ Rationale, or Why Create Another Mapper?
TLDR: