patchlevel/hydrator
Hydrate objects to arrays and back without calling constructors. Supports final and readonly classes, nested structures, enums, dates, lazy hydration, field renaming, and metadata caching with a developer-friendly, fully typed API.
"A library for seamless hydration of objects to arrays - and back again, optimized for developer experience and performance."
final, readonly classes, property promotion and deeply nested structurescomposer require patchlevel/hydrator
We are open to contributions as long as they are in line with our BC-Policy.
Also note that the composer.lock is always generated with the newest supported PHP version as this is the version our tools run in the CI.
How can I help you explore Laravel packages today?