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.
CastToDateTimeImmutable caster now supports setting a timezone.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.ObjectMapper interface was introduced, which represents both generated and reflection based mappers.ObjectHydrator interface.[@param](https://github.com/param) Type[] $name, [@param](https://github.com/param) array<Type> $name, [@param](https://github.com/param) array<string, Type> $name).hydrateObjects; a way to hydrate a list of objects in one goMapperSettings can now also be specified using an interface.How can I help you explore Laravel packages today?