NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3221 most downloaded on Packagist
Converts structured data into strict objects.
Latest stable
1.8.0
Last release 9 months ago
13 Feb 2026
Release timing varies
gaps range from 4 weeks to 13 months
Nearly every release is documented
notes for 28 of 28 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
28 releases · first in 2022
Drag across the ruler to compare, or tap a release to open it.
Align serialize with hydrator picking up nested DTOs when #93 (by @WyriHaximus)
Be able to filter out NULL values.
Set correct release version
Set correct release version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added interface for custom constructor resolution
Default to empty array in default serializer repository
[Regression] Casters returning null causes problem for hydrator enums.
Only try to resolve one property from the docblock to prevent parsing error
MapperSettings can now also be specified using an interface.
MapperSettings can now also be specified using an interface.Added ability to define polymorhic object mapping
Add mixed as native type in NaivePropertyTypeResolver
Ensure generic template is of object type
Corrected @template generic usage for generated hydrator
Added ability to omit all public method from serialization.
Functionally equivalent to 0.5.5, stable release.
Support nullable enum properties #28
Fix typo in PHPDoc parser regex pattern #27
Fix cache keys colliding when using multiple casters without options #26
Ignore use function/const statements when resolving the use statement map
Handle omission of data for nullable parameters and parameters with a default
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.3...0.5.0
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.3...0.5.0
Type Error when try to hydrate a nullable DateTime(Immutable) Object by @sleipi in https://github.com/EventSaucePHP/ObjectHydrator/pull/23
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.2...0.4.3
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.1...0.4.2
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.1...0.4.2
Add additional CastToDateTimeImmutable attribute argument timezone (optional) by @jmatthiesen81 in https://github.com/EventSaucePHP/ObjectHydrator/pul
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.4.0...0.4.1
CastToDateTimeImmutable caster now supports setting a timezone.The ObjectHydrator class was deprecated, use ObjectMapperUsingReflection and hint against the new ObjectMapper interface.
ObjectMapper interface was introduced, which represents both generated and reflection based mappers.ObjectHydrator interface.@param Type[] $name, @param array<Type> $name, @param array<string, Type> $name).ObjectHydrator class was deprecated, use ObjectMapperUsingReflection and hint against the new ObjectMapper interface.ListOfObjects class was deprecated, use the IterableList object instead.KeyFormattingWithoutConversion class was deprecated, use the KeyFormatterWithoutConversion class instead.ObjectHydrator class was converted into an interface named ObjectMapper, the main implementation is ObjectMapperUsingReflection.PropertyDefintion class was renamed to PropertyHydrationDefinition to be symmetrical with the new PropertySerializationDefinition.DefinitionProvider::provideDefinition method was deprecated in favour of the new provideHydrationDefinition for symmetry with provideSerializationDefinition.KeyFormatter interface was changed by adding a keyToPropertyName method, needed for serialization.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
Add @template info to functions using class-string. by @zobo in https://github.com/EventSaucePHP/ObjectHydrator/pull/13
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.3.0...0.3.1
[FEATURE] Added ability to define nested input by @frankdejonge in https://github.com/EventSaucePHP/ObjectHydrator/pull/12
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.2.0...0.3.0
[FEATURE] Added ability to register default casters. by @frankdejonge in https://github.com/EventSaucePHP/ObjectHydrator/pull/4
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/compare/0.1.0...0.2.0
hydrateObjects; a way to hydrate a list of objects in one goAdded ability to use multiple casters for one property. by @frankdejonge in https://github.com/EventSaucePHP/ObjectHydrator/pull/2
Full Changelog: https://github.com/EventSaucePHP/ObjectHydrator/commits/0.1.0
One column per quarter.