Download the PHP package romabeckman/dtophp without Composer
On this page you can find all versions of the php package romabeckman/dtophp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download romabeckman/dtophp
More information about romabeckman/dtophp
Files in romabeckman/dtophp
Download romabeckman/dtophp
More information about romabeckman/dtophp
Files in romabeckman/dtophp
Vendor romabeckman
Package dtophp
Short Description A library to DTO in PHP.
License MIT
Homepage https://github.com/romabeckman/dtophp
Package dtophp
Short Description A library to DTO in PHP.
License MIT
Homepage https://github.com/romabeckman/dtophp
Please rate this library. Is it a good library?
Informations about the package dtophp
DTOPHP
- Require php >= 7.1.0
- composer require romabeckman/dtophp
Inject HTTP body in DTO
Use the abstract InDto class to inject the HTTP body into the DTO. __construct is not allowed to overwrite. Auto-inject the HTTP body and accept json.
Validation (example in Laravel)
The Validator requires DocComment on attribute. You must use tag @rule. To configure the validator you must call static method, like exemple:
Below the class that will perform the validation. Important, the class must be implemented in your application. And, It´s required implements ValidatorInterface
interface.
Output DTO class
All versions of dtophp with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package romabeckman/dtophp contains the following files
Loading the files please wait ....