定制 codin-pro/data-transfer-object 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Stable Version Scrutinizer Code Quality Build Status Code Coverage Total Downloads License composer.lock available

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:

  1. Keep code quality at 10/10
  2. Keep code coverage at 100%
  3. Don't break back-compatibility

统计信息

  • 总下载量: 2.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2017-02-06