multisafepay / php-cast-json-models
A simple and direct way of casting json objects to models
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/multisafepay/php-cast-json-models
Requires (Dev)
- phpunit/phpunit: ^10.0
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