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

Object Mapper Laravel Package

symfony/object-mapper

Symfony Object Mapper maps one object to another using PHP attributes, giving you a clean, declarative way to handle DTOs and transformations without boilerplate. Part of the Symfony ecosystem.

View on GitHub
Deep Wiki
Context7
v8.1.9

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.8...v8.1.9)

  • bug #66756 Honor the target property # that leaves source out in the reverse class map (@nicolas-grekas)
v8.1.8

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.5...v8.1.8)

  • bug #66410 Construct nested lazy-ghost targets when the mapper is decorated (@dylan-rumble)
v8.1.5

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.4...v8.1.5)

  • bug #65385 Allow # on abstract classes (@nicolas-grekas)
  • bug #65366 Only honor an explicitly inbound target # for the same-name copy (@soyuka)
  • bug #65294 Fix reusing an already mapped object for a different target (@ousamabenyounes)
v8.1.4

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.2...v8.1.4)

  • bug #65154 Fix target property mappings dropped when the source carries metadata (@ousamabenyounes)
  • bug #65141 Skip nested mapping when no target fits the destination property type (@lazerg)
  • bug #65142 Fix the class-level mapping of another target being applied (@lazerg)
v7.4.16

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.15...v7.4.16)

  • bug #65154 Fix target property mappings dropped when the source carries metadata (@ousamabenyounes)
  • bug #65141 Skip nested mapping when no target fits the destination property type (@lazerg)
  • bug #65142 Fix the class-level mapping of another target being applied (@lazerg)
v8.1.2

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.1...v8.1.2)

  • bug #64983 Fix nested map() reconstructing an existing target (@takashiraki)
  • bug #64862 Resolve a nested reverse-mapped property by the type of its destination (@Amoifr)
  • bug #64781 Keep the class-level transform/if of the target's # in the reverse class-map factory (@Orkin)
  • bug #64770 Fix explicit # being overwritten by a same-name source property (@danielpilot)
  • bug #64848 Fix per-property # being ignored when the target property name also exists on the source (@Amoifr)
v8.0.15

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.14...v8.0.15)

  • bug #64983 Fix nested map() reconstructing an existing target (@takashiraki)
  • bug #64862 Resolve a nested reverse-mapped property by the type of its destination (@Amoifr)
  • bug #64770 Fix explicit # being overwritten by a same-name source property (@danielpilot)
  • bug #64848 Fix per-property # being ignored when the target property name also exists on the source (@Amoifr)
v7.4.15

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.14...v7.4.15)

  • bug #64983 Fix nested map() reconstructing an existing target (@takashiraki)
  • bug #64862 Resolve a nested reverse-mapped property by the type of its destination (@Amoifr)
  • bug #64770 Fix explicit # being overwritten by a same-name source property (@danielpilot)
  • bug #64848 Fix per-property # being ignored when the target property name also exists on the source (@Amoifr)
v8.1.1

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.0...v8.1.1)

  • minor #64643 Fix reverse class mapping of private properties from parent classes (@Amoifr)
  • bug #63791 Fix mapping of private properties from parent classes (@Amoifr)
  • bug #64589 Fix self-referencing property mapping (@GaryPEGEOT)
  • bug #64567 Handle N targets per source in reverse class map (@soyuka)
  • bug #64577 Make existing-object mapping behavior consistent (@kbond)
  • bug #64584 Fix fatal errors on unreadable source properties (@nicolas-grekas)
  • bug #64466 Fix reverse class map throwing on unreadable source (@yoye)
v8.0.14

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.9...v8.0.14)

  • bug #63791 Fix mapping of private properties from parent classes (@Amoifr)
  • bug #64577 Make existing-object mapping behavior consistent (@kbond)
  • bug #64584 Fix fatal errors on unreadable source properties (@nicolas-grekas)
  • bug #64358 Fix TargetClass generic type in ConditionCallableInterface (Mudassar Ali)
v7.4.14

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.9...v7.4.14)

  • bug #63791 Fix mapping of private properties from parent classes (@Amoifr)
  • bug #64577 Make existing-object mapping behavior consistent (@kbond)
  • bug #64584 Fix fatal errors on unreadable source properties (@nicolas-grekas)
  • bug #64358 Fix TargetClass generic type in ConditionCallableInterface (Mudassar Ali)
v8.1.0

Changelog (https://github.com/symfony/object-mapper/compare/v8.1.0-BETA3...v8.1.0)

  • bug #64358 Fix TargetClass generic type in ConditionCallableInterface (Mudassar Ali)
v8.1.0-BETA3
v8.1.0-BETA1

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.9...v8.1.0-BETA1)

  • bug #63789 Fix # attribute breaking auto-mapping of other properties (@Amoifr)
  • feature #63595 Add IsNotNull built-in condition (@Nayte91)
  • feature #63383 Allow class FQDN arrays as TargetClass and SourceClass param (@rrajkomar)
  • feature #63024 Add targetClass on MapCollection transform (@soyuka)
  • feature #62511 merge nested properties when targeting the same class (@soyuka)
  • bug #63050 improve test expectations (@soyuka)
  • feature #62957 Throw exception for invalid transform callable (@calm329, @Asenar)
  • feature #62522 Add automatic class-map array based on map attributes (@Orkin)
v8.0.9

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.6...v8.0.9)

  • bug #63889 Auto-inject ObjectMapper into ObjectMapperAwareInterface transforms (@Amoifr)
v7.4.9

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.6...v7.4.9)

  • bug #63889 Auto-inject ObjectMapper into ObjectMapperAwareInterface transforms (@Amoifr)
v8.0.8
v7.4.8
v8.0.6

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.5...v8.0.6)

  • bug #63446 fix nested mapping with class-level transform (Thibaut Cholley)
  • bug #63247 Skip source mapping attempts when target class condition evaluates to false (@rrajkomar)
v7.4.6

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.5...v7.4.6)

  • bug #63446 fix nested mapping with class-level transform (Thibaut Cholley)
  • bug #63247 Skip source mapping attempts when target class condition evaluates to false (@rrajkomar)
v8.0.5

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.4...v8.0.5)

  • bug #63141 apply conditions to constructor arguments (@soyuka)
v7.4.5

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.4...v7.4.5)

  • bug #63141 apply conditions to constructor arguments (@soyuka)
v8.0.4

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.3...v8.0.4)

  • bug #63027 error when multiple targets and no condition (soyuka)
  • bug #62862 Fix mapping for missing source properties (@Ali-HENDA)
v7.4.4

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.3...v7.4.4)

  • bug #63027 error when multiple targets and no condition (soyuka)
  • bug #62862 Fix mapping for missing source properties (@Ali-HENDA)
v8.0.1
v8.0.0-RC3

Changelog (https://github.com/symfony/object-mapper/compare/v8.0.0-RC2...v8.0.0-RC3)

  • bug symfony/symfony#62454 [ObjectMapper] mapping of nested classes with promoted read-only properties (@soyuka)
  • bug symfony/symfony#62455 [ObjectMapper] map to embedded object with property access (@soyuka)
  • bug symfony/symfony#62417 [ObjectMapper] bypass lazy ghost with class transform (@soyuka)
v7.4.0-RC3

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.0-RC2...v7.4.0-RC3)

  • bug symfony/symfony#62454 [ObjectMapper] mapping of nested classes with promoted read-only properties (@soyuka)
  • bug symfony/symfony#62455 [ObjectMapper] map to embedded object with property access (@soyuka)
  • bug symfony/symfony#62417 [ObjectMapper] bypass lazy ghost with class transform (@soyuka)
v7.4.0-RC1

Changelog (https://github.com/symfony/object-mapper/compare/v7.4.0-BETA2...v7.4.0-RC1)

  • bug symfony/symfony#62214 [ObjectMapper] lazy loading (@soyuka)
v7.3.6
v8.0.0-BETA1

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.4...v8.0.0-BETA1)

  • feature symfony/symfony#61497 [ObjectMapper] cache attributes in memory (@soyuka)
  • feature symfony/symfony#60442 [ObjectMapper] embed collection transformer (@soyuka)
  • feature symfony/symfony#61500 [JsonPath][JsonStreamer][ObjectMapper] the components are no longer experimental (@xabbuh)
  • feature symfony/symfony#61145 [ObjectMapper] Add ObjectMapperAwareInterface to set the owning object mapper instance (@soyuka)
  • feature symfony/symfony#60639 Bump Symfony 8 to PHP >= 8.4 (@nicolas-grekas)
v7.4.0-BETA1

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.4...v7.4.0-BETA1)

  • feature symfony/symfony#61497 [ObjectMapper] cache attributes in memory (@soyuka)
  • feature symfony/symfony#60442 [ObjectMapper] embed collection transformer (@soyuka)
  • feature symfony/symfony#61500 [JsonPath][JsonStreamer][ObjectMapper] the components are no longer experimental (@xabbuh)
  • feature symfony/symfony#61145 [ObjectMapper] Add ObjectMapperAwareInterface to set the owning object mapper instance (@soyuka)
v7.3.4

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.3...v7.3.4)

  • bug symfony/symfony#61785 [ObjectMapper] Preserve non-promoted constructor parameters (@rvanlaak)
v7.3.3

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.2...v7.3.3)

  • bug symfony/symfony#61310 [ObjectMapper] read source metadata before transform (@soyuka, @rvanlaak)
v7.3.2

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.1...v7.3.2)

  • bug symfony/symfony#61233 [ObjectMapper] skip reading uninitialized values (@soyuka)
  • bug symfony/symfony#61146 [ObjectMapper] initialize lazy objects (@soyuka)
  • bug symfony/symfony#61151 [ObjectMapper] update promoted properties w/ an object as target (@soyuka)
  • bug symfony/symfony#60856 [ObjectMapper] handle non existing property errors (@soyuka)
  • bug symfony/symfony#61036 [ObjectMapper] Correctly manage constructor initialization (@alanpoulain)
v7.3.1

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.0...v7.3.1)

  • bug symfony/symfony#60831 [ObjectMapper] Fix parameter passed to class level transform (@mttsch)
v7.3.0-RC1

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.0-BETA2...v7.3.0-RC1)

  • bug symfony/symfony#60491 [ObjectMapper] added earlier skip to allow if=false when using source mapping (@maciekpaprocki)
v7.3.0-BETA2

Changelog (https://github.com/symfony/object-mapper/compare/v7.3.0-BETA1...v7.3.0-BETA2)

  • feature symfony/symfony#60028 [ObjectMapper] Condition to target a specific class (@soyuka)
v7.3.0-BETA1

Changelog (https://github.com/symfony/object-mapper/compare/v7.2.6...v7.3.0-BETA1)

  • feature symfony/symfony#51741 [ObjectMapper] Object to Object mapper component (@soyuka)
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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin