Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 921 Bytes

README.mdown

File metadata and controls

39 lines (29 loc) · 921 Bytes

Alom Graphviz - Graphviz generation for PHP

Build Status

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é - [email protected] - http://alexandre-salome.fr

License

Alom Graphviz is licensed under the MIT License - see the LICENSE file for details