Top Level :: Structures

Package Information: Tree

This package is not maintained, if you would like to take over please go to this page.
» Summary » License
Generic tree management, currently supports databases (via DB, MDB and MDB2) and XML as data sources PHP License
» Current Release » Bug Summary
0.3.7 (beta) was released on 2012-01-04 (Changelog)
Easy Install

Not sure? Get more info.

pear install Tree

Pyrus Install

Try PEAR2's installer, Pyrus.

php pyrus.phar install pear/Tree

  • Package Maintenance Rank: 70 of 214 packages with open bugs
  • Number of open bugs: 2 (26 total bugs)
  • Average age of open bugs: 1038 days
  • Oldest open bug: 1050 days
  • Number of open feature requests: 2 (5 total feature requests)

Report a new bug to Tree
» Description
Provides methods to read and manipulate trees, which are stored in a database (via DB, MDB and MDB2) or an XML file.

The trees can be stored in the DB either as nested trees.
Or as simple trees, which use parentId-like structure.
Currently XML data can only be read from a file and accessed.
The package offers a big number of methods to access and manipulate trees.
For example methods like: getRoot, getChild[ren[Ids]], getParent[s[Ids]], getPath[ById] and many
more.

There are two ways of retreiving the data from the place where they are stored,
one is by reading the entire tree into the memory - the Memory way. The other
is reading the tree nodes as needed (very useful in combination with huge trees
and the nested set model).

The package is designed that way that it is possible to convert/copy tree data
from either structure to another (from XML into DB).


This package has the following drivers:
* DB
* MDB
* MDB2
* Array
* XML
* FileSystem
» Maintainers » More Information

Packages that depend on Tree

Dependencies for Tree