PHP code example of odolbeau / rabbitmq-graph
1. Go to this page and download the library: Download odolbeau/rabbitmq-graph 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/ */
odolbeau / rabbitmq-graph example snippets
$client = new Bab\RabbitMqGraph\Client();
$definitions = $client->getDefinitions();
$graph = new Bab\RabbitMqGraph\Graph($definitions);
echo $graph->render();
bash
php samples/00-basic.php > target/graph.dot
dot -Tpng -otarget/graph.png target/graph.dot
# One line
php samples/00-basic.php > target/graph.dot && dot -Tpng -otarget/graph.png target/graph.dot && open target/graph.png