odolbeau / rabbitmq-graph
Draw a graph from your RabbitMQ definitions.
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/odolbeau/rabbitmq-graph
Requires
- php: >=5.3.3
- alom/graphviz: ~1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2025-10-06 10:50:12 UTC
README
Installation
You need to have graphviz
installed locally.
To install dependency, run composer install
.
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
Author
Olivier Dolbeau - odolbeau@gmail.com - http://odolbeau.fr
License
This project is licensed under the MIT License - see the LICENSE
file for
details.