multisafepay/laravel-cast-json-models

A simple and direct way of casting json objects to models

1.0.0 2023-02-20 14:29 UTC

This package is auto-updated.

Last update: 2024-10-21 11:57:32 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