Basic object model to deal with tree
The recommended way to install sequoia is through Composer. Just create a
composer.json file, and run the composer install command to
install it:
{
"require": {
"robinbressan/sequoia": "dev-master"
}
}$tree = new Tree(new Node('root'));
$foo = new Node('foo');
$tree->getRootNode()->appendChild($foo);
$bar = new Node('bar');
$foo->appendChild($bar);
// Returns $bar
$tree->getRootNode()->find('foo/bar');This library is available under the MIT License.