Download the PHP package jdcode/dto-php without Composer
On this page you can find all versions of the php package jdcode/dto-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jdcode/dto-php
More information about jdcode/dto-php
Files in jdcode/dto-php
Download jdcode/dto-php
More information about jdcode/dto-php
Files in jdcode/dto-php
Vendor jdcode
Package dto-php
Short Description Simple and flexible Data Transfer Object library with validations
License MIT
Package dto-php
Short Description Simple and flexible Data Transfer Object library with validations
License MIT
Please rate this library. Is it a good library?
Informations about the package dto-php
Dto-Php
Simple and flexible Data Transfer Object library with validations
Installation
Composer
Usage
Class Dto
In your UseCase class
Validation
Currently it only has 3 basic validations
Class Dto
You can use $dto->validated() to know if the validation was correct and $dto->getErrors() to get the error messages.
Type Class object
If your property type is a DTO object, just placing it will automatically cast it.
Class Dto
In your UseCase class
Array Object
If you need an object array, just by placing the corresponding attribute you will get your object array.
In your UseCase class
License
MIT
All versions of dto-php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
The package jdcode/dto-php contains the following files
Loading the files please wait ...