quarks-tech/protoevent-amqp-php
Composer 安装命令:
composer require quarks-tech/protoevent-amqp-php
包简介
README 文档
README
-
Install dependencies:
composer install --ignore-platform-reqs
-
Builder php docker image: PHP 8.1 with all the required extensions
make install-builder
-
Update the
demo/config.phpfile: make sure these credentials match with your local rabbitmq setup'rabbitmq' => [ 'host' => getenv('DOCKER_INTERNAL_HOST'), 'port' => '5672', 'vhost' => '/', 'login' => 'guest', 'password' => 'guest', ]
-
Create rabbitmq exchange
example.books.v1 -
Start the receiver: The receiver will create the
example.consumers.v1queue, bind itself to theBookCreatedEvent, and start listening to events to process them.make demo-consume
-
Publish an event: The
BookCreatedEventwill be published on toexample.books.v1exchangemake demo-publish
统计信息
- 总下载量: 4.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-12-26