fresns/dto

Fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.

v1.3.2 2024-03-25 11:40 UTC

This package is auto-updated.

Last update: 2024-03-25 11:43:43 UTC


README

68747470733a2f2f6173736574732e667265736e732e636f6d2f696d616765732f6c6f676f732f667265736e732e706e67

PHP License

About DTO

Fresns data transfer object extension package for easy generation of data rules and inspection of transfer data. Works with Laravel projects.

Install

To install through Composer, by run the following command:

composer require fresns/dto

Generate 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.

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

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.

License

Fresns DTO is open-sourced software licensed under the Apache-2.0 license.