codin-pro/data-transfer-object
最新稳定版本:v1.0.4
Composer 安装命令:
composer require codin-pro/data-transfer-object
包简介
Common library for DTOs
README 文档
README
Common library for DTOs
Install
composer require codin-pro/data-transfer-object
or
"require": { "codin-pro/data-transfer-object": "^1.0" }
Usage
All you need for your custom DTO is extending from
CodinPro\DataTransferObject\DTO class and
defining fields as protected. That's it!
<?php namespace CodinPro\DataTransferObject; class ExampleDTO extends DTO { protected $foo = true; protected $bar = 'string'; protected $extra = ['a' => 'b']; }
After this "painful" setup, you are ready to go. You can find more usage examples on Wiki.
Contribution
Feel free to create your pull requests. The only requirements are:
- Keep code quality at 10/10
- Keep code coverage at 100%
- Don't break back-compatibility
统计信息
- 总下载量: 2.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-02-06