cmobi / rabbitmq-bundle
Bundle to manager RabbitMQ message broker using phpamqplib
Installs: 6 596
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 2
Type:symfony-bundle
Requires
- php: >=5.6.1
- monolog/monolog: ^1.19
- php-amqplib/php-amqplib: 2.6.3
- ramsey/uuid: ^3.4
- symfony/console: ^2.8
- symfony/http-kernel: 2.8.*
- symfony/options-resolver: ^2.8
Requires (Dev)
- phpunit/phpunit: 5.0
- satooshi/php-coveralls: ^1.0
- symfony/framework-bundle: ~2.8
This package is not auto-updated.
Last update: 2024-12-16 07:47:43 UTC
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' }