mylen / graphviz

为PHP生成Graphviz

维护者

详细信息

github.com/mylen/graphviz

主页

源码

安装: 190

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 1

分支: 20

0.1.0 2012-12-16 21:05 UTC

This package is not auto-updated.

Last update: 2024-09-22 02:52:09 UTC


README

Build Status

使用说明

此库允许您使用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文件