mylen / graphviz
Graphviz generation for PHP
0.1.0
2012-12-16 21:05 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2025-03-09 05:11:06 UTC
README
Usage
This library allow you to create Dot Graph with a PHP fluid interface:
$graph = new Alom\Graphviz\Digraph('G'); $graph ->subgraph('cluster_1') ->attr('node', array('style' => 'filled', 'fillcolor' => 'blue')) ->node('A') ->node('B') ->edge(array('b0', 'b1', 'b2', 'b3')) ->end() ->edge(array('A', 'B', 'C')) ; echo $graph->render();
Requirements
- PHP 5.3
- [optional] PHPUnit 3.5+ to execute test suite
Author
Alexandre Salomé - alexandre.salome@gmail.com - http://alexandre-salome.fr
License
Alom Graphviz is licensed under the MIT License - see the LICENSE
file for details