PHP code example of matraux / xml-orm
1. Go to this page and download the library: Download matraux/xml-orm 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/ */
matraux / xml-orm example snippets
use Matraux\XmlOrm\Xml\SimpleExplorer;
$explorer = SimpleExplorer::fromString($xml);
$main = MainEntity::fromExplorer($explorer);
echo $main->name;
$main = MainEntity::create();
$main->name = 'Main entity';
echo $main;