multisafepay / php-cast-json-models
A simple and direct way of casting json objects to models
1.0.0
2023-02-21 14:16 UTC
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