alpust/zf2-rabbitmq-eventbus-module

使用 rabbitmq 的 Zend 2 事件总线模块

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

This package is not auto-updated.

Last update: 2024-09-14 19:03:53 UTC


README

  1. 安装服务器 sudo apt-get install rabbitmq-server

  2. 安装 amqp 库

sudo apt-get install librabbitmq-dev librabbitmq1

或者

 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. 安装并启用 php amqp 扩展 pecl install amqp

  2. 在您的 composer.json 中添加此供应商,运行 composer update 并在模块中添加 EventBusapplication.config.php

配置

src/EventBus/PortAdapter/ZF2/config/amqp.local.php.dist 从 vendor 复制到您的 config/autoload,并将其重命名为 amqp.local.php。然后根据需要更改设置。

使用方法

很快就会有...