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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle