PHP code example of feday2 / serialize-object
1. Go to this page and download the library: Download feday2/serialize-object 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/ */
feday2 / serialize-object example snippets
use Feday2\SerializeObject\{SerializeJson, SerializeXml, SerializeYaml};
...
$serializeJson = new SerializeJson();
$serializeXml = new SerializeXml();
$serializeYaml = new SerializeYaml();
$json = $serializeJson->encode($test);
$xml = $serializeXml->encode($test);
$yml = $serializeYaml->encode($test);