mass6 / flexible-dto
Data transfer object with validation and value casting
Installs: 3 533
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.2
- illuminate/filesystem: ^11.0
- illuminate/support: ^11.0
- illuminate/translation: ^11.0
- illuminate/validation: ^11.0
Requires (Dev)
- larapack/dd: ^1.1
- phpunit/phpunit: ^11.0
- symfony/var-dumper: ^7.0
README
The aim of this package is to make it really easy to construct Data Transfer Objects with data properties constrained to a specified whitelist. Then, you can choose to construct the DTO by passing in each property individually like a classic DTO, or via an associative array.
Installation
You can install the package via composer:
composer require mass6/flexible-dto
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
Documentation
Check out the documentation at the Flexibile DTO Documentation website.