PHP code example of esysteme / graphviz
1. Go to this page and download the library: Download esysteme/graphviz library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
esysteme / graphviz example snippets
$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();