Download the PHP package jarivas/php-popo-models without Composer
On this page you can find all versions of the php package jarivas/php-popo-models. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jarivas/php-popo-models
More information about jarivas/php-popo-models
Files in jarivas/php-popo-models
Download jarivas/php-popo-models
More information about jarivas/php-popo-models
Files in jarivas/php-popo-models
Vendor jarivas
Package php-popo-models
Short Description A simple and direct way of casting json objects to models
License GPL-3.0-or-later
Package php-popo-models
Short Description A simple and direct way of casting json objects to models
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package php-popo-models
PHP json casting
- 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
Support union types Models, when built in types use mixed as type, only use union when you can not combine both models in one, like in this case
<?php
namespace Tests\Models;
use App\Casts\NextDate;
use Illuminate\Support\Collection;
use CastModels\Model;
class SearchAvailability extends Model
{
public string $start;
public int|null $idResource = null;
public int|null $idResourceType = null;
/** @var Collection<\App\Casts\Availability> */All versions of php-popo-models with dependencies
PHP Build Version
Package Version
No informations.
The package jarivas/php-popo-models contains the following files
Loading the files please wait ...