cmobi/rabbitmq-bundle
Composer 安装命令:
composer require cmobi/rabbitmq-bundle
包简介
Bundle to manager RabbitMQ message broker using phpamqplib
README 文档
README
The bundle provides a RabbitMq integration for your Symfony2 Project. Based on php-amqplib.
Installation
$ composer require cmobi/rabbitmq-bundle --no-update
Register the bundle:
// app/AppKernel.php public function registerBundles() { return array( new \Cmobi\RabbitmqBundle\CmobiRabbitmqBundle(), // ... ); }
Install the bundle:
$ composer update cmobi/rabbitmq-bundle
Usage:
Add cmobi_rabbitmq section in your configuration file:
cmobi_rabbitmq: connections: default: host: 172.17.0.1 port: 5672 user: 'guest' password: 'guest' vhost: '/' lazy: false connection_timeout: 3 read_write_timeout: 3 # requires php-amqplib v2.4.1+ and PHP5.4+ keepalive: false # requires php-amqplib v2.4.1+ heartbeat: 0
Register rpc servers:
cmobi_rabbitmq: //... rpc_servers: primary_server: queue: { name: 'primary_queue' } second_server: queue: { name: 'second_queue' }
统计信息
- 总下载量: 6.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2016-02-26