用于PHP的Graphviz生成,已针对Glial进行修复

v1.0.2 2015-06-18 07:53 UTC

This package is auto-updated.

Last update: 2024-09-07 15:17:57 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文件