-
Install server
sudo apt-get install rabbitmq-server
-
Install amqp lib
sudo apt-get install librabbitmq-dev librabbitmq1
or
git clone git://github.com/alanxz/rabbitmq-c.git
cd rabbitmq-c
# Enable and update the codegen git submodule
git submodule init
git submodule update
# Configure, compile and install
autoreconf -i && ./configure && make && sudo make install
-
Install and enable php amqp extension
pecl install amqp
-
Require this vendor in your
composer.json
, makecomposer update
and addEventBus
inapplication.config.php
in modules.
Copy src/EventBus/PortAdapter/ZF2/config/amqp.local.php.dist
from vendor to your
config/autoload
and rename it to amqp.local.php
. Then change settings if necessary.
Will be there soon...