robinbressan / sequoia
Provide tools to manage tree data structure
dev-master
2013-12-13 18:01 UTC
This package is not auto-updated.
Last update: 2024-12-17 03:56:19 UTC
README
Basic object model to deal with tree
Installation
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" } }
Usage
$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');
License
This library is available under the MIT License.