xactsystems/type-hint-hydrator
TypeHintHydrator maps arrays and request data into typed PHP objects by reading constructor and property type hints, so you can skip hand-written mapping code. Supports nested objects, enums, and collections, and fits neatly into Laravel or any PHP project.
xactsystems/type-hint-hydrator is a lightweight PHP/Laravel package that builds typed objects from arrays using constructor type hints. Instead of writing manual mapping code, define typed parameters and let the hydrator recursively resolve nested classes, enums, collections, and nullable values.
How can I help you explore Laravel packages today?