2 Star 1 Fork 0

Fresns / Fresns DTO

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
唐杰 提交于 2024-02-21 01:15 . docs: assets link

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.

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/fresns/dto.git
git@gitee.com:fresns/dto.git
fresns
dto
Fresns DTO
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891