This library convert Object props to needed format.
Like:
- JSON
- Yaml
- XML
- do next command (in terminal) in current directory (for install needed libraries)
composer install
- for start test, use next command (in terminal) in current directory
php tests/start.php
For converting Object to JSON:
<?php
$toJson = new SerializeToJson(new Object);
echo $toJson->getResult();
For converting Object to Yaml:
<?php
$toYaml = new SerializeToYaml(new Object);
echo $toYaml->getResult();
For converting Object to XML:
<?php
$toXml = new SerializeToXml(new Object);
echo $toXml->getResult();
Best regards, Your student Kuzemskyi S