承接 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
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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