mark-gerarts/auto-mapper-plus
AutoMapper+ transfers data between PHP objects with minimal boilerplate, inspired by .NET AutoMapper. Define mappings with custom callbacks and operations, handle nested objects, construction, naming conventions, and map arrays/stdClass with configurable options.
PHP 8.5 compatibility (#89)
Fix PHP8.4 deprecations (#87 & #88, thanks @tarlepp and @andrew-demb)
Bugfix #85: pass context in FromProperty->mapTo
$context parameter to custom mappers (#83)MapToAnyOf (#70 #67, thanks @peter-si)#59 Resolves a breaking bug when mapping to a null value
Resolves #58: mapping to classes with typed properties.
Clone the default mapping operation (#56, @iborysenko)
Fixes SetTo not applying when the source property is missing (#53)
Allow registering mappings with interfaces
The first release for the new major version. Main changes so far are:
Allow automatic registering of mappings by using a new option.
Fixes an issue when setting a private property with the same suffix (#33)
Add the destination object to the context when using mapToObject (Thanks @BoShurik)
Allow passing of context to custom constructor (Thanks @BoShurik)
Bugfixes:
null source values (#12)Features:
Fix a bug (#25) where private properties with the same suffix were being mapped incorrectly.
Fix a bug where MapTo would not make use of the assigned nameresolver (#17)
See #13, return NULL for a NULL source.
Fix a bug with inherited properties (#10)
Another bugfix release with MapFrom and differently named properties
Bugfix for MapFrom registering on a non-identical propertyname
CallbackNameResolverfromProperty operation that allows specifying the source property nameReversible interface, allowing operation to be reversedfromProperty reversibleHow can I help you explore Laravel packages today?