jarivas / php-popo-models
A simple and direct way of casting json objects to models
1.2
2024-03-21 05:37 UTC
Requires (Dev)
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^5.14
README
- A easy solution to have decriptions of json objects POCO style, please check tests for examples
- The method Object::collection will convert an array of objects to an collection of PHP objects that extends from CastModels\Model
- The objects that extends from CastModels\Model has the method toArray so can be returned in a response directly
- composer require jarivas/php-popo-models