yorcreative/laravel-argonaut-dto
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.
ArgonautDTO internals into reusable traits (HasCasting, HasSerialization, HasValidation)ArgonautImmutableDTO base class with readonly property support via reflectionBackedEnum casting support for single properties, arrays, and collectionsonly(), except(), and merge() serialization helpersactions/checkout from v2 to v4Full Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.3.0...v1.4.0
ArgonautImmutableDTO - New base class for creating readonly DTOs that cannot be modified after constructionHasCasting, HasValidation, and HasSerialization traits for code reusegetAttributesToUpdate() now properly excludes nestedAssemblers property (previously only excluded casts and prioritizedAttributes)from<ClassName> assembler method patternactions/checkout to v4 in CI workflowFull Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.2.0...v1.3.0
Full Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.1.0...v1.2.0
Full Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.0.0...v1.1.0
Initial Release Notes
Laravel Argonaut DTO is a lightweight, highly composable package for transforming arrays, objects, or collections into structured DTOs (Data Transfer Objects), with built-in support for:
🧱 Deep nested transformation and casting 🔁 Type-safe data conversion ✅ Validation using Laravel’s validator 🧠 Explicit attribute prioritization 📦 Clean serialization (toArray, toJson) ♻️ Consistent data shape enforcement across boundaries
How can I help you explore Laravel packages today?