Fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.
fresns/dto is a Laravel package for fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. works with laravel projects..
It currently has 1 GitHub stars and 2.161 downloads on Packagist (latest version v1.3.3).
Install it with composer require fresns/dto.
Discover more Laravel packages by fresns
or browse all Laravel packages to compare alternatives.
Last updated
Fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.
Fresns is an Apache-2.0-licensed open source project with its ongoing development made possible entirely by the support of these awesome backers. If you'd like to join them, please consider sponsoring Fresns development.
To install through Composer, by run the following command:
composer require fresns/dto
// Generate a new DTO (path: /app/DTO/)
php artisan make:dto BaseDTO
// Generate a new DTO(to the specified path)
php artisan make:dto BaseDTO --path /app/Fresns/Panel
See the Laravel documentation for the rules that can be used for validation.
You can contribute in one of three ways:
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
Fresns DTO is open-sourced software licensed under the Apache-2.0 license.