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
StarStarStar 59%Total: 1,473 This week: 1All time: 2,652 This week: 74Up
Version License PHP version Categories
phptreegraphext 0.2GNU Lesser Genera...5.0PHP 5, Graphics, Data types


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: 46
All time rank: 186645 in Canada Canada
Week rank: 89 Up4 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 * * 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. 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

  • 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,652
This week:74Up
User Ratings User Comments (1)
 All time
Great Idea and very usefull class
16 years ago (marco v)