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 Hydrator Laravel Package

eventsauce/object-hydrator

Magic-less object hydration and serialization for PHP. Map arrays/decoded JSON to DTOs, commands, queries, and events by inspecting constructors and public getters—no private-property reflection. Supports custom keys, casting, and optional code generation for speed.

View on GitHub
Deep Wiki
Context7
1.0.0
0.4.3

What's Changed

New Contributors

Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.2...0.4.3

0.4.1

What's Changed

New Contributors

Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.0...0.4.1

0.4.0

What's Changed

Added

  • The ObjectMapper interface was introduced, which represents both generated and reflection based mappers.
  • [Major Feature] Serialization was added to the main ObjectHydrator interface.
  • Array hydration now also has rudimentary support for docblock type hints ([@param](https://github.com/param) Type[] $name, [@param](https://github.com/param) array<Type> $name, [@param](https://github.com/param) array<string, Type> $name).

Deprecations

  • The ObjectHydrator class was deprecated, use ObjectMapperUsingReflection and hint against the new ObjectMapper interface.
  • The ListOfObjects class was deprecated, use the IterableList object instead.
  • The KeyFormattingWithoutConversion class was deprecated, use the KeyFormatterWithoutConversion class instead.

Breaking Changes

  • The ObjectHydrator class was converted into an interface named ObjectMapper, the main implementation is ObjectMapperUsingReflection.
  • The PropertyDefintion class was renamed to PropertyHydrationDefinition to be symmetrical with the new PropertySerializationDefinition.
  • The DefinitionProvider::provideDefinition method was deprecated in favour of the new provideHydrationDefinition for symmetry with provideSerializationDefinition.
  • The KeyFormatter interface was changed by adding a keyToPropertyName method, needed for serialization.
  • The ObjectHydrator::hydrateObjects return type class was renamed from ListOfObjects to IterableList.

Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.3.1...0.4.0

0.3.1

What's Changed

New Contributors

Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.3.0...0.3.1

0.3.0
0.2.0
0.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/commits/0.1.0

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