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

1.2 2024-03-21 05:37 UTC

This package is auto-updated.

Last update: 2025-09-21 08:49:01 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
  • composer require jarivas/php-popo-models