cerbero/dto
Cerbero DTO is a lightweight Laravel/PHP package for creating type-safe data transfer objects from arrays and requests. It supports property casting, validation, nested DTOs, and easy serialization, helping keep application data structured and predictable.
Architecture fit
Integration feasibility
illuminate/* version constraints, release history, CI status, test coverage, and whether the API is pre-1.0 (unstable semver).Technical risk
toArray/JSON output does not match existing API Resource contracts, clients break at the edges.illuminate/support constraint can block the next Laravel major, turning a convenience into a migration blocker.Key questions
JsonResource?Stack fit
Migration path
App\Support\Data\BaseData (or an interface) so DTO definitions depend on our class, not the vendor namespace. This makes replacement a one-file change.Compatibility
JsonResource, model casts, and any existing serialization. Run a contract test comparing DTO output against current response fixtures.Sequencing
Maintenance
composer audit, changelog review on each bump, and a standing check at every Laravel major upgrade.Support
Scaling
Failure modes
Ramp-up
TPM recommendation: viable as a thin, wrapped convenience layer in a low-risk boundary, contingent on the maintenance gate in step 2. Do not make it a load-bearing dependency in critical data paths without a fork plan and contract tests in place.
How can I help you explore Laravel packages today?