Download the PHP package kwm/think-amqp without Composer
On this page you can find all versions of the php package kwm/think-amqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kwm/think-amqp
More information about kwm/think-amqp
Files in kwm/think-amqp
Download kwm/think-amqp
More information about kwm/think-amqp
Files in kwm/think-amqp
Vendor kwm
Package think-amqp
Short Description 基于 ThinkPHP 6 的 RabbitMQ 消息队列 AMQP 操作类
License Apache-2.0
Package think-amqp
Short Description 基于 ThinkPHP 6 的 RabbitMQ 消息队列 AMQP 操作类
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package think-amqp
Think AMQP
基于 ThinkPHP 6 的 RabbitMQ 消息队列 AMQP 操作类
安装
该操作类需要依赖 PHP 的 AMQP 扩展,可使用
pcel install amqp
安装
安装完成后,请确认 vendor/services.php
中数组里有添加 think\\amqp\\Service
。若没有添加,请手工运行:php think service:discover
入门
配置
将 示例配置文件 复制到项目 config
目录下
生产者
若交换机不存在,默认会创建 fanout
交换机,需要你在管理界面绑定对应的队列,比如将 kwm
交换机和 kwm.queue
队列绑定到一起
消费者
消费者封装
封装特性:
- 支持设置最大次数的失败自动重试
- 重试可自定义延时时间
消费者命令行
配置
-
配置文件:
app/tasks.php
,内容请见 这里 - 启动消费者:
php think consumer kwm
All versions of think-amqp with dependencies
PHP Build Version
Package Version
The package kwm/think-amqp contains the following files
Loading the files please wait ....