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

This package is auto-updated.

Last update: 2024-12-21 18:53:56 UTC


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