PHP code example of sitnikovik / array-to-object-serializer
1. Go to this page and download the library: Download sitnikovik/array-to-object-serializer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sitnikovik / array-to-object-serializer example snippets
use Sitnikovik\ArrayToObjectSerializer\ToObject;
class Game
{
/**
* @var string
*/
public $name;
/**
* @var Player[]
*
* @ToObject(Sitnikovik\ArrayToObjectSerializer\Mock\Player)
*/
public $players = [];
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.