Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Argonaut Dto Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v1.4.0

What's Changed

  • Refactor ArgonautDTO internals into reusable traits (HasCasting, HasSerialization, HasValidation)
  • Adds ArgonautImmutableDTO base class with readonly property support via reflection
  • Adds BackedEnum casting support for single properties, arrays, and collections
  • Adds only(), except(), and merge() serialization helpers
  • Adds PHP 8.5 to CI matrix and PHPStan (level 5) to the pipeline
  • Bumps actions/checkout from v2 to v4

Full Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.3.0...v1.4.0

v1.3.0

What's Changed

  • ArgonautImmutableDTO - New base class for creating readonly DTOs that cannot be modified after construction
  • Trait-based architecture - Extracted HasCasting, HasValidation, and HasSerialization traits for code reuse
  • PHPStan static analysis - Added level 5 static analysis with CI integration
  • PHP 8.5 support - Added PHP 8.5 to composer requirements and CI test matrix

Bug Fixes

  • getAttributesToUpdate() now properly excludes nestedAssemblers property (previously only excluded casts and prioritizedAttributes)

Improvements

  • Test coverage improved from 99.10% to 100%
  • Added test for from<ClassName> assembler method pattern
  • Updated actions/checkout to v4 in CI workflow
  • Fixed documentation typos in README

Full Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.2.0...v1.3.0

v1.1.0

What's Changed

New Contributors

Full Changelog: https://github.com/YorCreative/Laravel-Argonaut-DTO/compare/v1.0.0...v1.1.0

v1.0.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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport