jarivas / php-popo-models
A simple and direct way of casting json objects to models
Installs: 19
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 2
pkg:composer/jarivas/php-popo-models
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