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,233 | 2,179 | 190 | 0 | 0 | 22.9 | — | MIT | 3 years ago | |
| cocur/vale | 0.84 | 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 | 20.7 | 37.1 | MIT | 11 years ago | |
| dragon-code/simple-dto | 0.84 | 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 | 39K | 0 | 12.6 | 58.4 | 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 | 29K | 0 | 0.1 | 27.7 | MIT | — | |
| 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 | 406 | 0 | 22.2 | 11.1 | MIT | 1 month ago | |
| spatie/schema-org | 0.81 | Fluent PHP builder for Schema.org: generate any type and property from the full core vocabulary and output valid JSON-LD (ld+json) script tags. Generated from the official Schema.org JSON-LD, with documented classes and methods. | 1,476 | 1,490 | 146 | 278K | 0 | 40.8 | 37.0 | MIT | 1 month ago | |
| spatie/typed | 0.80 | Userland improved PHP type system with type inference and runtime checking: generics, union types, typed collections/lists, tuples, and structs. Proof-of-concept package from Spatie to add stronger type guarantees without language-level support. | 319 | 321 | 15 | 3 | 0 | 11.9 | 0.1 | MIT | 5 years 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 | 363K | 4 | 24.6 | 65.0 | MIT | 4 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. | 378 | 398 | 70 | 175K | 5 | 14.5 | 44.6 | BSD-3-Clause | 7 years ago | |
| wendelladriel/laravel-validated-dto | 0.79 | Create Data Transfer Objects that validate input on instantiation. Define rules once and reuse them across controllers, services, jobs, and CLI commands—reducing duplication and keeping validation decoupled from HTTP requests. Compatible with Laravel 11–13. | 760 | 759 | 46 | 26K | 1 | 34.9 | 25.3 | MIT | 4 weeks ago | |
| spatie/laravel-data | 0.68 | Define rich, typed data objects once and use them for requests, validation, API resources/transformers, and TypeScript definitions. Create from arrays/requests/models, apply rules automatically, and transform only what’s needed with lazy properties. | 1,720 | 1,726 | 277 | 2M | 13 | 51.1 | 55.8 | MIT | 6 days ago |
How can I help you explore Laravel packages today?