1. Go to this page and download the library: Download badams/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/ */
# read a value
echo $node->getAttribute('label', 'no label'); # second argument is default value
# write a value
$node->attribute('label', 'new label');
$graph = new Alom\Graphviz\Digraph('G');
$graph
->node('A', array('shape' => 'record', 'label' => '{ <1> Part 1 | <2> Part 2}'))
->node('B')
->edge(array('B', array('A', '1')))
;