odolbeau/rabbitmq-graph

Draw a graph from your RabbitMQ definitions.

Installs: 3

Dependents: 0

Stars: 1

Watchers: 2

Forks: 1

Language: PHP

v1.0.1 2013-11-30 12:08 UTC

README

Build Status

Usage

This library allow you to create Dot Graph from your RabbitMQ definitions:

$client = new Bab\RabbitMqGraph\Client();
$definitions = $client->getDefinitions();
$graph = new Bab\RabbitMqGraph\Graph($definitions);

echo $graph->render();

To render the graph (in png for example):

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

For more information about the DOT command, please see the Man page

Requirements

  • PHP 5.3
  • [optional] PHPUnit 3.5+ to execute test suite

Author

Olivier Dolbeau - odolbeau@gmail.com - http://odolbeau.fr

License

Bab RabbitMqGraph is licensed under the MIT License - see the LICENSE file for details