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
8 items
📄️ Mapping Arrays & Array-Like Objects
This chapter describes how to map arrays and array-like objects.
📄️ Mapping DateTime
This chapter describes how to do a mapping involving DateTime objects.
📄️ Context and Mapping Options
Provide context variables to the mapper to control the mapping process. Or get
📄️ 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.
📄️ SubMapper
SubMapper is a highly simplified mapper used in places where you might need to
📄️ Debugging the Mapper
Command Line
📄️ Cache Pre-warming
Mapper caches the results of expensive processing, so when it does the same
🗃️ Cookbook
2 items
📄️ Rationale, or Why Create Another Mapper?
TLDR: