dragon-code/simple-dto
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.
Architecture fit: Low. The package is explicitly deprecated in favor of spatie/laravel-data per the README, which is more feature-rich and actively maintained. DTOs are valuable for Laravel request validation and service layer communication, but this package lacks modern Laravel integration patterns (e.g., native validation, type safety) and community adoption.
Integration feasibility: Possible but discouraged. Installation via Composer is straightforward, but archived status means no compatibility guarantees with newer Laravel/Symfony versions (e.g., Laravel 11, Symfony 7+). Dependencies on dragon-code/contracts and dragon-code/support may conflict with other modern packages.
Technical risk: High. Archived repositories indicate abandonment—no security patches, bug fixes, or updates. Dependents count is 0, confirming no community usage. Known historical issues (e.g., boolean processing errors in v2.2.2) remain unaddressed. Critical vulnerabilities in dependencies (e.g., Symfony components) could go unpatched.
Key questions: Why was the package archived? What specific shortcomings in spatie/laravel-data led to this deprecation? Are there unresolved security flaws? How does this package compare to alternatives in performance, type safety, and Laravel ecosystem compatibility?
Stack fit: Incompatible with modern Laravel best practices. Designed for legacy PHP 7.3+ and older Symfony versions; lacks support for Laravel 9/10/11 features like typed properties, attributes, or native validation. Not
How can I help you explore Laravel packages today?