Weave Code
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 component maps data from one object to another using PHP attributes. Simplifies DTO/entity transformations, supports configurable mapping rules, and integrates with the Symfony ecosystem. Documentation and contributions are handled in the main Symfony repository.

View on GitHub
Deep Wiki
Context7
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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
ecotone/kafka
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata