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 66%Total: 3,764 All time: 866 This week: 310Up
Version License PHP version Categories
phptreegraph 1.0.0GNU Lesser Genera...5.0PHP 5, Graphics, Data types
Description Author

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: 38
All time rank: 84451 in Germany Germany
Week rank: 523 Up19 in Germany Germany Up

Details
/**
 * phpTreeGraph
 *
 *
 * PHP version 5
 * @copyright  Mathias Herrmann 2007
 * @author     Mathias Herrmann <mathias_herrmann@arcor.de>
 * @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
Screenshots  
  • 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  
 0%
Total:3,764
This week:0
All time:866
This week:310Up
User Ratings User Comments (2)
 All time
Utility:95%StarStarStarStarStar
Consistency:95%StarStarStarStarStar
Documentation:-
Examples:95%StarStarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:708
  
For more information send a message to info at phpclasses dot org.