PHP Classes

PHP Tree Graph Ext: 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 (7)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,462 This week: 1All time: 2,659 This week: 426Up
Version License PHP version Categories
phptreegraphext 0.2GNU Lesser Genera...5.0PHP 5, Graphics, Data types
Description Author

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

It is a fork of the PHP Tree Graph class originally written by Mathias.

This version changes are:

- Added ability to set title of the node
- Added ability to insert nodes without any order
- Added ability to choose which node will be the root (all non-child nodes will not be shown)
- Added ability to set margins of the image

Picture of Alex Fomenko
Name: Alex Fomenko <contact>
Classes: 1 package by
Country: Canada Canada
Age: 43
All time rank: 186344 in Canada Canada
Week rank: 370 Up8 in Canada Canada Up

  * phpTreeGraph
  * PHP version 5
  * @copyright  Mathias Herrmann 2007
  * @author     Mathias Herrmann <>
  * @author     Alex Fomenko <>
  * @license    LGPL
  *                                                                          *
  * 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.


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
  • Demo1.png
  • Demo2.png
  Files folder image Files  
File Role Description
Files folder imageclasses (3 files)
Image file croc.png Icon 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 Icon Image
Image file frosch.png Icon Image
Image file fungi.png Icon Image
Plain text file Readme Doc. 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:1
All time:2,659
This week:426Up
User Comments (1)
Great Idea and very usefull class
13 years ago (marco v)
For more information send a message to info at phpclasses dot org.