yiisoft/hydrator
Yii Hydrator populates typed objects from arrays and other input using attributes and property mapping. It handles type casting, nested hydration, and dependency injection, offering PHP and Laravel apps a fast, flexible alternative to manual DTO construction.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| zero-to-prod/data-model | 0.88 | DataModel hydrates PHP objects from external data with a single from($data) call using reflection and type hints. Validation and casting live in #[Describe] attributes (required, nullable, default, assign), replacing manual property wiring and scattered null checks. | 139 | 140 | 7 | 2K | 0 | 29.0 | 18.4 | MIT | 2 months ago | |
| yiisoft/factory | 0.87 | A flexible factory for Yii3 that creates objects from class names, definitions, or callables, resolving constructor dependencies through a PSR-11 container. Ideal for configurable services and dependency injection setups. | 36 | 37 | 14 | 19K | 5 | 3.6 | 39.0 | BSD-3-Clause | 11 months ago | |
| json-mapper/laravel-package | 0.87 | Map JSON payloads and arrays into typed PHP objects and DTOs with this Laravel package. A fluent API defines field mappings, nested structures, and collections, with clean integration into Laravel's container, facades, and config. | 25 | 25 | 5 | 12K | 0 | 8.9 | 39.4 | MIT | 7 months ago | |
| sylius-labs/association-hydrator | 0.87 | 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. | 92 | 94 | 14 | 162K | 1 | 9.6 | 47.2 | — | 9 months ago | |
| yiisoft/hydrator-validator | 0.87 | Integrates Yii Hydrator with Yii Validator to validate input data while hydrating typed objects and DTOs. Map arrays into objects and enforce validation rules in one step, reducing boilerplate and keeping data checks close to object construction. | 14 | — | 2 | — | 3 | 3.3 | 1.2 | BSD-3-Clause | 10 months ago |
|
| yiisoft/definitions | 0.87 | Minimalistic definitions container for PHP apps. Build and compose object definitions for DI: map IDs to classes, factories, values and params, with autowiring-friendly configuration. Designed to work smoothly with Yii and other PSR-based projects. | 15 | 15 | 6 | 66K | 4 | 6.6 | 52.4 | BSD-3-Clause | 11 months ago | |
| liquidrazor/dto-api-bundle | 0.87 | A Laravel bundle for building API layers around data transfer objects. It helps structure request and response payloads, keep controllers thin, and maintain consistent, typed data flow between your application and its API endpoints. | 0 | 0 | 1 | 0 | 0 | 8.1 | — | — | 7 months ago | |
| cerbero/laravel-dto | 0.87 | Cerbero Laravel DTO provides a simple way to define typed data transfer objects in Laravel, with attribute casting, validation, and conversion from arrays, requests, and Eloquent models. It helps keep controllers and services clean by moving data shaping and validation into reusable DTO classes. | 58 | 59 | 2 | 69 | 0 | 0.4 | 4.7 | MIT | — | |
| std-out/simple-data-objects | 0.86 | Lightweight, attribute-driven DTOs for PHP 8.4+ with zero runtime reflection and compiled per-class closures for fast hydration and serialization. Works standalone or in Laravel 12–13. | 35 | 35 | 0 | 202 | 0 | 27.3 | 13.2 | MIT | 3 weeks ago | |
| azjezz/input-hydrator | 0.86 | — | 31 | 32 | 0 | 4 | 0 | 0.8 | 0.7 | MIT | 6 years ago | |
| michael-rubel/laravel-enhanced-container | 0.86 | A lightweight extension for Laravel’s service container, offering convenient helpers for binding, resolving, and managing dependencies. Simplify contextual bindings, singletons, and instance handling while keeping service providers clean, expressive, and easier to test. | 88 | 88 | 3 | 562 | 0 | 0.8 | 11.9 | MIT | 1 year ago | |
| azjezz/input-hydrator-bundle | 0.86 | — | 9 | 9 | 0 | 3 | 0 | 0.9 | 1.6 | MIT | 6 years ago | |
| yiisoft/di | 0.86 | PSR-11 compatible dependency injection container for PHP 8.1+. Supports autowiring plus constructor, method and property injection, aliasing, service providers, delegated/composite containers, circular reference detection, and state reset for long-running workers. | 236 | 238 | 49 | 39K | 14 | 10.7 | 36.7 | BSD-3-Clause | 11 months ago | |
| yiisoft/dummy-provider | 0.86 | A small dummy provider package for Yii, useful for testing, prototyping, and demonstrating provider behavior without real integrations. | 7 | 7 | 2 | 5K | 0 | 0.1 | 38.8 | BSD-3-Clause | 1 year ago | |
| yiisoft/validator | 0.86 | Yii Validator is a standalone PHP validation library with reusable rule sets, nested data support, attribute and value validation, and customizable error messages. It integrates with Yii but works in any PHP project. | 165 | — | 47 | — | 46 | 34.3 | 21.0 | BSD-3-Clause | 1 month ago |
|
| yiisoft/injector | 0.86 | PSR-11 compatible dependency injector with autowiring. Resolves and injects dependencies when calling functions or creating objects, supports extra arguments by name or type, and handles variadic parameters. Works with any PSR-11 container. | 93 | 94 | 17 | 240K | 6 | 24.1 | 57.1 | BSD-3-Clause | 1 week ago | |
| yiisoft/data-response | 0.85 | yiisoft/data-response provides a PSR-7 response wrapper for returning structured data from your application. It supports multiple output formats, content negotiation, and streaming, making it easy to send JSON, XML, HTML, or raw data consistently. | 20 | 20 | 13 | 21K | 7 | 8.8 | 45.8 | BSD-3-Clause | 8 months ago | |
| yiisoft/yii2-app-advanced | 0.85 | Yii 2 Advanced Application Template: a starter project for building Yii2 apps with separate frontend and backend, shared common code, environment-specific configs, and ready-to-use tools for development, testing, and deployment. | 14,277 | 1,692 | 6,745 | 1K | 239 | 70.5 | 29.4 | BSD-3-Clause | 5 months ago | |
| league/object-mapper | 0.85 | A lightweight object-to-object mapper for PHP that converts one class into another using reflection and PHP attributes. Define property mappings, handle nested objects, arrays, and collections, and reduce boilerplate when transforming DTOs, entities, and API payloads. | 36 | 36 | 4 | 1K | 3 | 1.0 | 21.8 | MIT | — | |
| yiisoft/data | 0.85 | yiisoft/data provides data providers, pagination, sorting, and filtering for Yii applications. A consistent API lets you read, paginate, sort, and filter data from arrays, databases, or custom sources, simplifying list and API development. | 46 | 46 | 16 | 16K | 1 | 3.1 | 35.5 | BSD-3-Clause | 10 months ago |
How can I help you explore Laravel packages today?