PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2011-04-12 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,376 This week: 2All time: 2,732 This week: 591Up
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: Ukraine Ukraine

Details
/**
  * phpTreeGraph
  *
  *
  * PHP version 5
  * @copyright  Mathias Herrmann 2007
  * @author     Mathias Herrmann <mathias_herrmann@arcor.de>
  * @author     Alex Fomenko <alex.fomenko@gmail.com>
  * @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
Screenshots  
  • Demo2.png
  • Demo1.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  
 0%
Total:1,376
This week:2
All time:2,732
This week:591Up
User Comments (1)
Great Idea and very usefull class
8 years ago (marco v)
67%StarStarStarStar