ixnode/php-array-to-object
ixnode/php-array-to-object converts nested PHP arrays into object instances, giving you property-style access instead of array keys. A small, dependency-free helper for config, API payloads, and JSON-decoded data.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| yiisoft/hydrator | 0.86 | 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. | 34 | 34 | 6 | 24K | 12 | 6.6 | 44.1 | BSD-3-Clause | 10 months ago | |
| opensoft/simple-serializer | 0.86 | opensoft/simple-serializer is a lightweight PHP serializer for turning objects and Eloquent models into arrays or JSON. Define attributes once and produce consistent, predictable API payloads with minimal boilerplate and configuration. | 19 | — | 8 | — | 1 | 0.5 | — | MIT | — |
|
| laminas/laminas-hydrator | 0.86 | Laminas Hydrator converts arrays into objects and extracts objects back into arrays. It supports naming strategies, filters, hydration/extraction strategies, nested objects, and reusable data mapping for PHP applications. | 129 | 132 | 35 | 500K | 12 | 33.9 | 64.2 | BSD-3-Clause | 1 month ago | |
| aljerom/simple-hydrator | 0.86 | — | 0 | 0 | 0 | 1 | 0 | 0.0 | 4.2 | — | — | |
| eag/easy-hydrator | 0.85 | — | 1 | 1 | 2 | 1K | 0 | 0.7 | 39.7 | MIT | 1 year ago | |
| symfony/serializer | 0.85 | The Symfony Serializer component converts object graphs and data structures to and from arrays, JSON, XML, and other formats, handling normalization, denormalization, and encoding for flexible data exchange. | 2,532 | 2,558 | 81 | 16M | 0 | 50.0 | 61.7 | MIT | 2 days ago | |
| spiral/marshaller | 0.85 | — | 1 | 1 | 0 | 10 | 0 | 0.3 | 10.8 | MIT | 3 years ago | |
| zendframework/zend-hydrator | 0.85 | 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. | 151 | 164 | 39 | 71K | 3 | 3.4 | 26.2 | BSD-3-Clause | 7 years ago | |
| botanick/serializer-bundle | 0.85 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| baudev/php-object-converter-bundle | 0.85 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 7 years ago | |
| b2pweb/bdf-serializer | 0.85 | — | 0 | 0 | 0 | 871 | 0 | 0.0 | 40.6 | MIT | — | |
| karriere/json-decoder | 0.85 | JsonDecoder maps JSON into typed PHP objects, handling nested objects, arrays, scalar casting, required fields, and custom decoders. It turns API responses and config files into predictable, IDE-friendly classes for safer, cleaner PHP code. | 139 | 141 | 23 | 6K | 1 | 7.9 | 24.3 | NOASSERTION | 8 months ago | |
| transprime-research/arrayed | 0.84 | Arrayed brings fluent, chainable array helpers to Laravel and PHP, making it simple to filter, map, group, sort, and transform nested data with clean, readable syntax. A lightweight toolkit for everyday array manipulation without boilerplate. | 22 | 22 | 1 | 10 | 2 | 0.8 | 2.2 | MIT | 2 years ago | |
| andrew-gos/serializer | 0.84 | Extensible PHP 8.2+ serializer that normalizes arrays/objects and encodes to JSON or XML. Register custom normalizers and encoders via a configurable Serializer. Pure encoders avoid mutating input and handle XML duplication/circular references. | 0 | 0 | 0 | 46 | 0 | 4.6 | 23.9 | MIT | 1 year ago | |
| std-out/simple-data-objects | 0.84 | 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 | |
| ivory/serializer | 0.84 | ivory/serializer is a lightweight Laravel and PHP package for transforming models and data structures into consistent arrays or JSON. Define serialization rules to control output, simplify API responses, and keep data formatting predictable across your application. | 3 | 2 | 3 | 3K | 1 | 0.1 | 27.7 | MIT | — | |
| tdn/php-types | 0.84 | A small PHP utility for working with types: safely cast values, validate data against expected types, and normalize scalars, arrays and objects. Lightweight and framework-agnostic, it drops easily into Laravel or any Composer project. | 7 | 8 | 0 | 45 | 0 | 0.0 | 8.0 | NOASSERTION | 11 years ago | |
| egeloen/serializer | 0.84 | — | 29 | 29 | 20 | 1K | 6 | 2.6 | 25.0 | MIT | — | |
| ixnode/php-container | 0.83 | A lightweight PHP dependency injection container for registering, binding, and resolving services. It offers a simple API for managing object dependencies, helping keep application code decoupled, organized, and easier to test. | 1 | — | 0 | — | 0 | 2.4 | — | MIT | 10 months ago |
|
| league/object-mapper | 0.83 | 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 | — |
How can I help you explore Laravel packages today?