PHP Classes

PHP Tree Graph: Render graphical diagrams of hierarchical trees

Recommend this page to a friend!

  Author Author  
Name: Mathias <contact>
Classes: 1 package by
Country: Germany Germany
Age: 34
All time rank: 85555 in Germany Germany
Week rank: 1104 Down54 in Germany Germany Up

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

 * 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           *
  * Lesser General Public License for more details.                          *
  *                                                                          *
  *                                                                          *
  *                                                                          *


Please take a look at the examples (Demo1.php, Demo2.php) to see the possibilities
of phptreeGraph.

Class documentation is in /doc


Tree.php - main class
contains the layout algorithm (walker algorithm) for calculating the node positions.

contains functions to draw the graph

contains the Node class

  Classes of Mathias  >  PHP Tree Graph  >  Download Download .zip .tar.gz  >  Support forum Support forum (6)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Tree Graph
Base name: phptreegraph
Description: Render graphical diagrams of hierarchical trees
Version: 1.0.0
PHP version: 5.0
License: GNU Lesser General Public License (LGPL)
All time users: 3631 users
All time rank: 895
Week users: 0 users
Week rank: 647 Equal
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Applications   Related pages   Files Files  

Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Data types Modeling and manipulating data types View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file sample1.png Screen sample output
Accessible without login Image file Screen1.png Screen sample output

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (95%) Good (95%) - Good (95%) - - Sufficient (66%) 667
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
Class documentation
documentation of the class

  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

Install with Composer Install with Composer - Download Download all files: phptreegraph.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.