spatie/data-transfer-object
PHP 8+ data transfer objects with “batteries included”: map and cast input arrays into typed DTOs, validate via attributes, and handle nested objects/collections. Note: package is deprecated; consider spatie/laravel-data or cuyz/valinor.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/value-object | 0.86 | 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 | 189 | 0 | 0 | 12.9 | — | MIT | 3 years ago | |
| dragon-code/simple-dto | 0.83 | Lightweight PHP DTO helper: define simple DataTransferObject classes, build instances via make(), map nested input keys to properties, and (optionally) cast values. Supports upgrade paths from older package names. Note: author recommends spatie/laravel-data instead. | 9 | 9 | 2 | 20K | 0 | 2.6 | 32.1 | MIT | 2 years ago | |
| symplify/easy-testing | 0.82 | Utilities for easier PHP unit testing, focused on writing cleaner tests with less boilerplate. Provides helpers and base test cases commonly used in Symplify tools to streamline assertions, fixture handling, and test setup across projects. | 41 | 42 | 3 | 46K | 0 | 0.1 | 29.7 | MIT | — | |
| cocur/vale | 0.82 | cocur/vale is a lightweight PHP value validation library. Define reusable rules to validate strings, numbers, arrays, and objects, and get clear, consistent results without pulling in a full framework—handy for DTOs, APIs, and input sanitization. | 14 | 14 | 1 | 3K | 0 | 0.7 | 31.7 | MIT | 11 years ago | |
| yorcreative/laravel-argonaut-dto | 0.81 | Lightweight, composable Laravel DTO package to transform arrays/objects/collections into typed, validated data objects. Supports deep nested casting, type-safe conversion, Laravel Validator rules, explicit attribute priority, clean toArray/toJson serialization, and immutable readonly DTOs. | 106 | 106 | 4 | 207 | 0 | 16.8 | 7.3 | MIT | 3 months ago | |
| spatie/schema-org | 0.81 | Fluent PHP builder for the full Schema.org vocabulary. Create Schema.org types and properties via chainable methods and output valid JSON-LD/ld+json scripts for SEO. Auto-generated from Schema.org standards for complete coverage. | 1,490 | 1,510 | 144 | 309K | 1 | 39.5 | 37.0 | MIT | 1 month ago | |
| bigyohann/symfony-dto-bundle | 0.81 | — | 0 | 0 | 0 | 0 | 0 | 0.8 | — | — | 3 years ago | |
| spatie/laravel-data | 0.81 | Create rich, typed data objects for Laravel that replace form requests and API transformers. Automatically map from requests, validate with inferred rules, transform to resources (with lazy/partial fields), and generate TypeScript definitions from the same source. | 1,757 | 1,760 | 282 | 2M | 3 | 47.5 | 49.2 | MIT | 4 weeks ago | |
| wendelladriel/laravel-validated-dto | 0.81 | Build typed Data Transfer Objects for Laravel that validate incoming data using familiar validation rules, defaults, and casting. Create DTOs by extending ValidatedDTO, define rules(), and get safe, validated, ready-to-use properties for your app. | 763 | 762 | 47 | 24K | 1 | 35.2 | 24.1 | MIT | 1 week ago | |
| dreadnip/smart-dto-bundle | 0.80 | — | 0 | 0 | 0 | 0 | 0 | 0.9 | — | MIT | 3 years ago | |
| dayploy/dart-dto-bundle | 0.80 | — | 0 | 0 | 0 | 82 | 0 | 0.1 | 25.9 | MIT | — | |
| codememory/dto | 0.80 | 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 | 0 | 0 | 15.3 | — | MIT | 7 months ago | |
| microsoft/azure-storage-common | 0.80 | Deprecated common PHP library shared by Azure Storage Blob, Table, Queue and File SDKs. Used mainly for releases; development and issues are in azure-storage-php. Azure Storage PHP client libraries retire 17 March 2024—see retirement notice for alternatives. | 43 | 44 | 19 | 389K | 4 | 4.6 | 55.4 | MIT | 4 years ago | |
| raulfraile/ladybug-plugin-extra | 0.79 | Extra plugin for the Ladybug PHP debugger/dumper by Raúl Fraile. Adds additional integrations and helpers to extend Ladybug’s output for easier inspection and debugging in your apps. | 1 | 1 | 2 | 330 | 0 | 1.5 | 30.7 | MIT | 12 years ago | |
| zendframework/zend-stdlib | 0.79 | Zend\Stdlib provides general-purpose utility components for PHP, including array helpers, messaging utilities, string wrappers, and more. Note: this repository was abandoned on 2019-12-31 and moved to laminas/laminas-stdlib. | 377 | 398 | 70 | 230K | 5 | 4.5 | 27.7 | BSD-3-Clause | 7 years ago | |
| open-southeners/laravel-dto | 0.79 | — | 10 | 10 | 1 | 90 | 2 | 26.8 | 16.4 | MIT | 1 month ago |
How can I help you explore Laravel packages today?