alpust / zf2-rabbitmq-eventbus-module
使用 rabbitmq 的 Zend 2 事件总线模块
dev-master
2021-02-19 12:43 UTC
Requires
- php: >=5.3.3
- ext-amqp: >=1.4.0
- zendframework/zend-console: >=2.2
- zendframework/zend-modulemanager: >=2.2
- zendframework/zend-mvc: >=2.2
- zendframework/zend-servicemanager: >=2.2
- zendframework/zend-stdlib: >=2.2
Requires (Dev)
- pdezwart/php-amqp: dev-master
This package is not auto-updated.
Last update: 2024-09-14 19:03:53 UTC
README
-
安装服务器
sudo apt-get install rabbitmq-server
-
安装 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
-
安装并启用 php amqp 扩展
pecl install amqp
-
在您的
composer.json
中添加此供应商,运行composer update
并在模块中添加EventBus
至application.config.php
。
配置
将 src/EventBus/PortAdapter/ZF2/config/amqp.local.php.dist
从 vendor 复制到您的 config/autoload
,并将其重命名为 amqp.local.php
。然后根据需要更改设置。
使用方法
很快就会有...