mylen / graphviz
为PHP生成Graphviz
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: 2024-09-22 02:52:09 UTC
README
使用说明
此库允许您使用PHP流畅的界面创建Dot图
$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();
需求
- PHP 5.3
- [可选] PHPUnit 3.5+ 以执行测试套件
作者
Alexandre Salomé - alexandre.salome@gmail.com - http://alexandre-salome.fr
许可证
Alom Graphviz遵循MIT许可证 - 有关详细信息,请参阅LICENSE
文件