2017 © Pedro Peláez
 

library data-transfer-object

Common library for DTOs

image

codin-pro/data-transfer-object

Common library for DTOs

  • Tuesday, April 10, 2018
  • by uLow
  • Repository
  • 2 Watchers
  • 0 Stars
  • 860 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 23 % Grown

The README.md

Data Transfer Object

Common library for DTOs, (*1)

Latest Stable Version Scrutinizer Code Quality Build Status Code Coverage Total Downloads License composer.lock available, (*2)

Install

composer require codin-pro/data-transfer-object, (*3)

or, (*4)

    "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!, (*5)

<?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., (*6)

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, (*7)

The Versions

10/04 2018

dev-master

9999999-dev https://github.com/CodinPro/data-transfer-object

Common library for DTOs

  Sources   Download

Apache-2.0

The Development Requires

by Vitalijs Litvinovs

24/08 2017

v1.0.3

1.0.3.0 https://github.com/CodinPro/data-transfer-object

Common library for DTOs

  Sources   Download

Apache-2.0

The Development Requires

by Vitalijs Litvinovs

27/02 2017

v1.0.2

1.0.2.0 https://github.com/CodinPro/data-transfer-object

Common library for DTOs

  Sources   Download

Apache-2.0

The Development Requires

by Vitalijs Litvinovs

08/02 2017

v1.0.1

1.0.1.0 https://github.com/CodinPro/data-transfer-object

Common library for DTOs

  Sources   Download

Apache-2.0

The Development Requires

by Vitalijs Litvinovs

06/02 2017

v1.0.0

1.0.0.0 https://github.com/CodinPro/data-transfer-object

Common library for DTOs

  Sources   Download

Apache-2.0

The Development Requires

by Vitalijs Litvinovs