NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1134 most downloaded on Packagist
Serialize objects to arrays, and vice versa
Latest stable
5.1.0
Last release 12 days ago
10 Nov 2026
Release timing varies
gaps range from 9 days to 12 months
Most releases are documented
notes for 36 of 52 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
52 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Total pull requests resolved: 9
[!IMPORTANT] Adds support for PHP 8.6
Feature release (minor)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Backwards incompatible release (major)
Backwards incompatible release (major)
158: 4.18.x merge up into 5.0.x thanks to @mairo744
155: Merge release 4.18.0 into 5.0.x thanks to @github-actions[bot]
HydratorProviderInterface thanks to @mairo744164: Mark CONDITION_OR and CONDITION_AND as deprecated for future removal thanks to @mairo744
Feature release (minor)
HydratorProviderInterface in the 4.x series thanks to @gsteelTotal pull requests resolved: 1
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
165: Add export-ignore rules to .gitattributes thanks to @sasezaki
Total pull requests resolved: 1
Feature release (minor)
144: Deprecate `HydratorProviderInterface` thanks to @mairo744
Feature release (minor)
@final for future introduction of the final keyword in v5 thanks to @mairo744HydratorProviderInterface thanks to @mairo744Total pull requests resolved: 3
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 2
Feature release (minor)
export-ignore entries in .gitattributes thanks to @sasezakiTotal pull requests resolved: 1
Feature release (minor)
vimeo/psalm thanks to @renovate[bot]Total pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
HydratingIteratorInterface thanks to @renovate[bot]Total pull requests resolved: 3
Feature release (minor)
composer check thanks to @kynxBackedEnumStrategy thanks to @kynxTotal pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 2
Feature release (minor)
psr/cache thanks to @renovate[bot]Total pull requests resolved: 2
Feature release (minor)
Total pull requests resolved: 9
Feature release (minor)
README.md: replaced coveralls coverage badge (unused) with psalm's shepherd badge (type coverage) thanks to @sasezakiMapNamingStrategyTest, so that pattern would be only non non-empty-tring array-key (in test data provider) thanks to @sasezakiTotal pull requests resolved: 1
4.3.x bugfix release (patch)
Total pull requests resolved: 1
4.3.x bugfix release (patch)
This release adds support for PHP 8.1.
#69 adds caching to the UnderscoreToCamelCaseFilter and CamelCaseToUnderscoreFilter, providing a 75% performance improvement when these filters are hit for the same value names.
#73 modifies exceptions thrown via the ArraySerializableHydrator to make it easier to pinpoint what element caused the error.
74: Provide PHP 8.1 support thanks to @weierophinney
73: Nest throwables in ArraySerializableHydrator thanks to @meidlinga
69: Cache values in UnderscoreToCamelCaseFilter and CamelCaseToUnderscoreFilter thanks to @DerKnerd
65: Merge release 4.2.1 into 4.3.x thanks to @github-actions[bot]
This release reverts the deprecation of Laminas\Hydrator\Strategy\BooleanStrategy. The class had been marked deprecated in 4.2.0, with the ScalarTypeS…
Laminas\Hydrator\HydrationInterface::hydrate()Laminas\Hydrator\Aggregate\HydrateEvent
The change has no impact on functionality.Laminas\Hydrator\Strategy\BooleanStrategy. The class had been marked deprecated in 4.2.0, with the ScalarTypeStrategy listed as a replacement. However, on review, we determined that the mapping behavior of BooleanStrategy differed significantly from ScalarTypeStrategy and deserved its own implementation.Total pull requests resolved: 1
4.2.x bugfix release (patch)
This release adds Laminas\Hydrator\Strategy\ScalarTypeStrategy, which will cast values to the scalar type specified when instantiating the strategy. T
Laminas\Hydrator\Strategy\ScalarTypeStrategy, which will cast values to the scalar type specified when instantiating the strategy. The strategy supports int, float, string, and bool types, and also includes named constructors to simplify constructing instances that target each scalar type.Laminas\Hydrator\Strategy\BooleanStrategy. Users are urged to use the ScalarTypeStrategy instead.quick-start.md to reflect the fact that ObjectPropertyHydrator requires public properties thanks to @mojtabaahnObjectPropertyHydrator example (requires public properties) thanks to @mkurzydlowskiForward ports a patch from 3.2.1 that resolves a false positive cache hit in the ClassMethodsHydrator.
ClassMethodsHydrator.Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 2
61: Merge release 4.0.3 into 4.1.x thanks to @weierophinney
Total pull requests resolved: 1
Feature release (minor)
Forward ports a patch from 3.2.1 that resolves a false positive cache hit in the ClassMethodsHydrator.
ClassMethodsHydrator.Total pull requests resolved: 1
4.0.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
36: Fix example in quick-start.md thanks to @vjik
Total pull requests resolved: 1
4.0.x bugfix release (patch)
next backward compatibility break release (major)
#30 modifies all Laminas\Hydrator\Filter\FilterInterface implementations shipped with the package, marking them as final. If you previously extended them, you will need to copy and paste the implementations, or open an issue requesting removal of the final keyword, detailing your use case.
#30 changes the signature of Laminas\Hydrator\Filter\FilterInterface::filter() to now accept a second, optional argument, ?object $instance = null. This argument's primary use case is with anonymous objects, to facilitate reflection; the ClassMethodsHydrator, for instance, was updated to pass the $instance value only when an anonymous object is detected. All filter implementations have been updated to the new signature.
next backward compatibility break release (major)
The ClassMethodsHydrator would occasionally have a scenario whereby no methods were cached, but a conditional would miss this fact, which would lead t
ClassMethodsHydrator would occasionally have a scenario whereby no methods were cached, but a conditional would miss this fact, which would lead to a logic error later. The conditional has been updated.Total pull requests resolved: 2
Total pull requests resolved: 3
Added ----- - #17 adds a new strategy, DateTimeImmutableFormatterStrategy, to provide bidirectional conversion between strings and DateTimeImmutable i
#17 adds a new strategy, DateTimeImmutableFormatterStrategy, to provide bidirectional conversion between strings and DateTimeImmutable instances.
#16 adds a new strategy implementation, Laminas\Hydrator\Strategy\Hydrator. It can be used to hydrate nested objects and vice versa.
Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - #5 fixes an error that occ
Laminas\Hydrator\Filter\FilterComposite when used under the Swoole extension.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.