odolbeau / rabbitmq-graph
从您的 RabbitMQ 定义中绘制图形。
v1.0.1
2013-11-30 12:08 UTC
Requires
- php: >=5.3.3
- alom/graphviz: ~1.0
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-09-06 08:29:03 UTC
README
安装
您需要在本地安装 graphviz
。要安装依赖项,请运行 composer install
。
用法
这个库允许您从 RabbitMQ 定义中创建 Dot 图形
$client = new Bab\RabbitMqGraph\Client(); $definitions = $client->getDefinitions(); $graph = new Bab\RabbitMqGraph\Graph($definitions); echo $graph->render();
为了渲染图形(例如 png 格式)
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
有关 DOT 命令的更多信息,请参阅手册页面
作者
Olivier Dolbeau - odolbeau@gmail.com - http://odolbeau.fr
许可
本项目采用 MIT 许可证授权 - 有关详细信息,请参阅 LICENSE
文件。