Thursday, 22 August 2013

How To Install GraphViz For PHP On Ubunutu

How To Install GraphViz For PHP On Ubunutu

What I want to do is install GraphViz for PHP on Ubuntu.
I tried pear install Image_GraphViz, it installed but does not work for me.
Then I tried downloading the file from here.
File name : libgv-php5_2.32.0-1~raring_amd64.deb When I run the file it
says dependency is not satisfiable libgraphviz4.
All I want to do is run the code below which is from their documentation.
Unfortunately I can not find GraphViz.php to download.
<?php
require_once 'GraphViz.php';
$gv = new Image_GraphViz();
$gv->addEdge(array('wake up' => 'visit bathroom'));
$gv->addEdge(array('visit bathroom' => 'make coffee'));
$gv->image();
?>
How can I fix this issue? Where can I download GraphViz.php

No comments:

Post a Comment