alpust/zf2-rabbitmq-eventbus-module

Zend 2 event bus module using rabbitmq

dev-master 2021-02-19 12:43 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:18:24 UTC


README

  1. Install server sudo apt-get install rabbitmq-server

  2. 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
  1. Install and enable php amqp extension pecl install amqp

  2. Require this vendor in your composer.json, make composer update and add EventBus in application.config.php in modules.

Configuration

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.

Usage

Will be there soon...