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.
spatie/laravel-data or valinor.spatie/laravel-data (Laravel-specific) or valinor (general PHP) instead."This package is officially archived and no longer maintained, exposing us to unpatched security risks and compatibility issues. We recommend migrating to spatie/laravel-data (for Laravel projects) or valinor (for broader PHP use) – both are actively supported with modern features, security updates, and community backing. Delaying migration increases technical debt and operational risk; we propose a 60-day plan to transition all existing usages to these alternatives."
How can I help you explore Laravel packages today?