PHP Classes

PHP Tree Graph: Render graphical diagrams of hierarchical trees

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 3,809 All time: 846 This week: 89Up
Version License PHP version Categories
phptreegraph 1.0.0GNU Lesser Genera...5.0PHP 5, Graphics, Data types


This package can be used to render graphical diagrams of hierarchical trees of nodes.

There is a base tree class that manages an hierarchy of node objects.

A renderer sub-class takes care of traversing the tree and rendering a representation of each node in an image.

Each node may have associate a text, an image and desired width and height that it will occupy in the tree graphical diagram.

The colors of the image background, node, node links and node text are configurable. The node link style, node text font and node border width can also be configured.

Picture of Mathias
Name: Mathias <contact>
Classes: 1 package by
Country: Germany Germany
Age: 41
All time rank: 83651 in Germany Germany
Week rank: 225 Up14 in Germany Germany Up


/** * phpTreeGraph * * * PHP version 5 * @copyright Mathias Herrmann 2007 * @author Mathias Herrmann <> * @license GPL * * * This PHP class is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or (at your option) any later version. * * * * This PHP class is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * Lesser General Public License for more details. * * * * * * * * */ Documentation Please take a look at the examples (Demo1.php, Demo2.php) to see the possibilities of phptreeGraph. Class documentation is in /doc Classes: ------------------------------------------------------------------------------------ Tree.php - main class contains the layout algorithm (walker algorithm) for calculating the node positions. GDRenderer.php contains functions to draw the graph Node.php contains the Node class

  • sample1.png
  • Screen1.png
  Files folder image Files  
File Role Description
Files folder imageclasses (3 files)
Image file croc.png Photo Image
Plain text file Demo1.php Example Demo file to show possibilities
Plain text file Demo2.php Example demo file to show possibilities
Image file fish.png Photo graphic
Image file frosch.png Photo Image
Image file fungi.png Photo Image
Plain text file Readme Data Readme file

  Files folder image Files  /  classes  
File Role Description
  Plain text file GDRenderer.php Class GD rendering class
  Plain text file Node.php Class node class
  Plain text file Tree.php Class Main class with layout algorithm

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:846
This week:89Up
User Ratings User Comments (2)
 All time