salamov/dto-hydrator
Lightweight Laravel/PHP package for hydrating DTOs from arrays, request data, or other sources. Map input into typed objects with minimal boilerplate, keeping data transfer clean, explicit, and predictable.
salamov/dto-hydrator is a lightweight PHP package that simplifies mapping raw data—such as request payloads or arrays—into typed Data Transfer Objects. It removes repetitive manual assignment, letting you define a DTO class and hydrate it in a single call while keeping your code clean and predictable.
Built for modern Laravel and PHP projects, the package focuses on explicit, safe hydration so your DTOs stay immutable and easy to test.
How can I help you explore Laravel packages today?