A simple and extensible package for creating and handling Data Transfer Objects (DTOs) in Laravel applications.
- Create DTOs from arrays or Laravel Requests
- Optional validation with rules defined inside the DTO class
- Convert DTOs to array or JSON
- Support for typed and immutable properties (PHP 8.1+)
In a Laravel project:
composer require hugomatheuss/laravel-dto