Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Auto Mapper Plus Laravel Package

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.

View on GitHub
Deep Wiki
Context7
1.5.0

PHP 8.5 compatibility (#89)

1.4.2

Fix PHP8.4 deprecations (#87 & #88, thanks @tarlepp and @andrew-demb)

1.4.1

Bugfix #85: pass context in FromProperty->mapTo

1.4.0
  • Adds the $context parameter to custom mappers (#83)
  • Bump the minimum PHP version to 7.4 since 7.3 and below are EOL
  • Migrate from Travis to Github Actions (thanks again @malteschlueter)
  • Add MapToAnyOf (#70 #67, thanks @peter-si)
1.3.12

#59 Resolves a breaking bug when mapping to a null value

1.3.11

Resolves #58: mapping to classes with typed properties.

1.3.10

Clone the default mapping operation (#56, @iborysenko)

1.3.9

Fixes SetTo not applying when the source property is missing (#53)

1.3.8
  • Performance increase for resolving mappings (@Toilal)
  • Add additional meta information to the context (@Toilal)
  • Fix usage of property accessor in default mapping implementation (#51)
1.3.7
  • Add destination class to the context array (@Toilal)
  • Make the destination contexts available for custom constructors (@Toilal)
  • Consistently add contexts to all mapping methods
1.3.6
1.3.5

Allow registering mappings with interfaces

2.0.0-alpha1

The first release for the new major version. Main changes so far are:

  • Following the interface proposed in the Symfony PR
  • Mapping to array
  • Deprecation removals
1.3.4

Allow automatic registering of mappings by using a new option.

1.3.3

Fixes an issue when setting a private property with the same suffix (#33)

1.3.2

Add the destination object to the context when using mapToObject (Thanks @BoShurik)

1.3.1

Allow passing of context to custom constructor (Thanks @BoShurik)

1.3.0

Bugfixes:

  • PropertyAccess is split up into reading and writing (#27)
  • Add possibility to ignore null source values (#12)
  • Fix mapping with inherited private properties (#26)

Features:

  • Various performance improvements
  • Implement a new SetTo operation
  • Allow mapping from array (#18, thanks @slava-v)
  • Allow passing of context (#30, thanks @BoShurik )
1.2.3

Fix a bug (#25) where private properties with the same suffix were being mapped incorrectly.

1.2.2

Major changes:

  • Allow MapTo to be chained from FromProperty (#17)
  • Add MapperAware operation (Thanks @slava-v)
  • Adhere to the substitution principle (Thanks @mschop)
  • Pass mapper to custom constructor (Thanks @BoShurik)
1.2.1

Fix a bug where MapTo would not make use of the assigned nameresolver (#17)

1.2.0
  • Add MapFromWithMapper (Thanks @slava-v)
  • Add MapperAwareInterface
1.1.1

See #13, return NULL for a NULL source.

1.1.0
  • Allow setting of custom constructor callback
  • Allow mapping to stdClass
  • Implement object crates
  • Some minor performance tweaks
  • Readme updates
v1.0.6

Fix a bug with inherited properties (#10)

v1.0.5
  • Removed the property existence check in forMember (see #8)
  • Added the possibility to copy a mapping
v1.0.4

Another bugfix release with MapFrom and differently named properties

v1.0.3

Bugfix for MapFrom registering on a non-identical propertyname

v1.0.2
  • Allow setting of custom name resolvers
  • Create the CallbackNameResolver
  • Some small performance tweaks
  • Updated docs
v1.0.1
  • Support mapping from a stdClass
  • Created the new fromProperty operation that allows specifying the source property name
  • Create the Reversible interface, allowing operation to be reversed
  • Made fromProperty reversible
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast