Details
PHP Hierarchical
Hierarchical is a simple php & mysql program to arrange users based on their rankings, it can also be used to represent data in a chain ranking.
This libery will work very well with Google Organisation chart

Installation
Installation is super-easy via Composer:
composer require peterujah/hierarchical
USAGES
Hierarchical can be use as an array, html or google organizations chart
use Peterujah\NanoBlock\Hierarchical;
$hierarchy = new Hierarchical($conn, Hierarchical::LIST);
$hierarchy = new Hierarchical($conn, Hierarchical::HTML);
$hierarchy = new Hierarchical($conn, Hierarchical::CHART);
Dump array
$hierarchy = new Hierarchical($conn, Hierarchical::LIST);
var_export($hierarchy->run("Peter", "vy7735"));
Display on google Organisation chart
google.charts.load('current', {packages:["orgchart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('string', 'Manager');
data.addColumn('string', 'ToolTip');
data.addRows(<?php echo $hierarchy->run("Peter", "vy7735");?>);
var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
chart.draw(data, {'allowHtml':true});
}
Initalisation options new Hierarchical($conn, Hierarchical::CHART)
| Options | Description |
|-----------------|-------------------------------------------------------------------------------------|
| LIST | Retrieve result as an array |
| HTML | Retrieve result in HTML list |
| CHART | Retrieve result in json data for google chart |
|
Name: |
PHP MySQL Hierarchical Tree |
Base name: |
hierarchical |
Description: |
Retrieve and display hierarchy trees from MySQL |
Version: |
1.0.0 |
PHP version: |
5 |
License: |
GNU General Public License (GPL) |
All time users: |
164 users |
All time rank: |
8878 |
Week users: |
0 users |
Week rank: |
115  |
|
|
I need a PHP class for mind map generation
Read a hierarchical data structure and generate a graphical map
 February 2022
Number 4 |
Hierarchies represent relations between people or other types of related entities. The hierarchy structure determines which entities are in command of other entities.
Hierarchies can be stored in databases using table records that express what entities are below or above in the hierarchy tree.
This class can retrieve a hierarchy tree structure from a MySQL database table to easily visualize using the Google Charts API.
Manuel Lemos |
Not yet rated by the users |
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
|
Files |
|