Download the PHP package adcbguo/think_rabbit_mq without Composer
On this page you can find all versions of the php package adcbguo/think_rabbit_mq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package think_rabbit_mq
基于RabbitMQ ThinkPHP 的队列封装
安装使用
配置文件
发布消息队列
$job
是任务名
执行队列消耗类fire,写类名即可
app\log\jobs\ErrorLogJobs
如果一个任务类里有多个小任务的话,需要用@+方法名
app\log\jobs\OrderLogJobs@update
$data
传递参数
是你要传到任务里的参数,必须是数组数据
在消耗类里使用
$this->data
获取
$attempts
执行次数
从第几次开始执行
$mq
虚拟机和队列
发布到那个虚拟机和队列
需要有对应的虚拟机和队列去消耗
监听任务并执行
exchange
RabbitMQ的虚拟机
queue
RabbitMQ的队列
memory
单个进程使用的最大内存,超出内存会从新启动一个进程
tries
单个消息执行最大次数可配合
supervisor
使用,保证进程常驻
All versions of think_rabbit_mq with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2.0
topthink/framework Version 6.0.0
php-amqplib/php-amqplib Version ^2.9
ext-json Version *
topthink/framework Version 6.0.0
php-amqplib/php-amqplib Version ^2.9
ext-json Version *
The package adcbguo/think_rabbit_mq contains the following files
Loading the files please wait ....