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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| azjezz/input-hydrator | 0.86 | — | 32 | 32 | 0 | 0 | 0 | 0.8 | 0.2 | MIT | 5 years ago | |
| eag/easy-hydrator | 0.85 | — | 1 | 1 | 0 | 1K | 0 | 4.3 | 41.0 | MIT | 9 months ago | |
| aljerom/simple-hydrator | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| sylius-labs/association-hydrator | 0.83 | Doctrine ORM association hydrator for Sylius apps, inspired by Ocramius’ hydration optimization technique. Helps efficiently load and hydrate entity associations to reduce queries and improve performance in read-heavy workflows. | 94 | 94 | 14 | 162K | 1 | 14.8 | 49.1 | — | 5 months ago | |
| minionfactory/raw-hydrator | 0.83 | Raw Hydrator is a small PHP package for turning raw data (arrays/records) into hydrated objects with minimal overhead. Useful for fast mapping of database results or API payloads into DTOs/entities without a full ORM. | 1 | 1 | 0 | 2K | 0 | 0.0 | 42.1 | MIT | — | |
| woohoolabs/yin | 0.83 | PSR-7–compatible PHP framework for building JSON:API servers. Provides documents, resources, hydrators, request/response validation, pagination, relationship handling, content negotiation, middleware support, and custom serialization/deserialization. | 240 | 240 | 37 | 3K | 5 | 12.7 | 17.5 | MIT | 5 years ago | |
| azjezz/input-hydrator-bundle | 0.82 | — | 9 | 9 | 0 | 0 | 0 | 0.9 | — | MIT | 5 years ago | |
| laminas/laminas-hydrator | 0.82 | Laminas Hydrator provides flexible tools to hydrate and extract data between arrays and objects. Includes hydrator strategies, naming conventions, and integration helpers for forms and domain models, supporting multiple hydrator implementations and extensions. | 129 | 132 | 35 | 447K | 12 | 33.0 | 62.7 | BSD-3-Clause | 2 months ago | |
| debesha/doctrine-hydration-profiler-bundle | 0.80 | — | 130 | 133 | 14 | 3K | 1 | 16.7 | 21.1 | MIT | 6 months ago | |
| zero-to-prod/data-model | 0.80 | Reflection-based PHP data models that hydrate typed objects from arrays with a single from($data) call. Use #[Describe] attributes to define casting, validation, defaults, nullable/required rules, and assignments—keeping mapping logic predictable, readable, and verifiable. | 141 | 142 | 7 | 2K | 0 | 29.8 | 18.9 | MIT | 1 month ago | |
| bornfight/transfer-object-converter | 0.80 | — | 12 | 12 | 0 | 0 | 0 | 2.2 | 3.8 | MIT | 7 years ago | |
| spatie/value-object | 0.80 | Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. | 2,227 | 2,179 | 187 | 0 | 0 | 12.9 | — | MIT | 3 years ago | |
| codememory/dto | 0.79 | Auto-hydrate PHP/Symfony DTOs from request/array data using rules and decorators. Supports name conversion (e.g., snake_case), enum casting via attributes, and event hooks during processing. Build a manager with caching and reflection for fast mapping. | 1 | 1 | 0 | 33 | 0 | 12.8 | 17.8 | MIT | 9 months ago | |
| zendframework/zend-hydrator | 0.79 | Zend Hydrator provides strategies and tools to extract data from objects and hydrate objects from arrays in PHP. Supports naming strategies, custom hydrators, and flexible configuration, useful for forms, APIs, and domain model mapping. | 154 | 164 | 39 | 68K | 3 | 3.4 | 25.9 | BSD-3-Clause | 6 years ago | |
| laminas/laminas-stdlib | 0.78 | Utility components for PHP from the Laminas project: data structures, array and string helpers, hydrators, validators, option objects, and more. A shared toolbox used across Laminas and usable standalone in any PHP application. | 238 | 238 | 44 | 2M | 8 | 19.3 | 60.5 | BSD-3-Clause | 9 months ago | |
| eventsauce/eventsauce | 0.78 | EventSauce is an opinionated, no-nonsense PHP library for introducing event sourcing. Choose storage and queueing mechanisms to fit your needs, with supporting test tooling built for an event-sourcing workflow. Docs: eventsauce.io/docs | 866 | 866 | 84 | 41K | 5 | 9.2 | 26.9 | MIT | — | |
| boshurik/mapper-bundle | 0.76 | — | 1 | 1 | 0 | 18 | 0 | 9.3 | 14.4 | — | 9 months ago | |
| shureban/laravel-object-mapper | 0.76 | — | 3 | 3 | 1 | 275 | 1 | 2.9 | 25.4 | MIT | 2 years ago | |
| symfony/object-mapper | 0.75 | Symfony Object Mapper component maps data from one object to another using PHP attributes. Simplifies DTO/entity transformations, supports configurable mapping rules, and integrates with the Symfony ecosystem. Documentation and contributions are handled in the main Symfony repository. | 36 | 36 | 2 | 209K | 0 | 29.9 | 60.8 | MIT | 3 weeks ago | |
| boshurik/mapper | 0.74 | Lightweight Laravel/PHP object mapper for converting between arrays and DTOs/entities. Helps map input data to typed objects and back with minimal boilerplate, supporting custom mapping rules and nested structures for clean data transformations. | 2 | 2 | 0 | 9 | 0 | 1.2 | 8.3 | — | 5 years ago |
How can I help you explore Laravel packages today?