Download the PHP package k99k5/think-queue-amqp without Composer
On this page you can find all versions of the php package k99k5/think-queue-amqp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download k99k5/think-queue-amqp
More information about k99k5/think-queue-amqp
Files in k99k5/think-queue-amqp
Download k99k5/think-queue-amqp
More information about k99k5/think-queue-amqp
Files in k99k5/think-queue-amqp
Vendor k99k5
Package think-queue-amqp
Short Description amqp(RabbitMQ) connector for think-queue
License MIT
Package think-queue-amqp
Short Description amqp(RabbitMQ) connector for think-queue
License MIT
Please rate this library. Is it a good library?
Informations about the package think-queue-amqp
Amp(RabbitMq)
驱动安装:
composer require php-amqplib/php-amqplib ^3.0
支持阿里云 账号密码->实例列表->静态用户名密码
'amqp' => [
'type' => 'amqp',
'queue' => 'thinkphp',
'hosts' => [
[
'host' => '127.0.0.1',
'port' => 5672,
'user' => 'guest',
'password' => 'guest',
'vhost' => '/',
],
],
'options' => [
'ssl_options' => [
'ssl_on' => false,
'cafile' => null,
'local_cert' => null,
'local_key' => null,
'verify_peer' => true,
'passphrase' => null,
],
],
],
发布任务
think\facade\Queue::push($job, $data = '', $queue = null)
和think\facade\Queue::later($delay, $job, $data = '', $queue = null)
两个方法,前者是立即执行,后者是在$delay
秒后执行
$data
是你要传到任务里的参数
$queue
队列名,指定这个任务是在哪个队列上执行,同下面监控队列的时候指定的队列名,可不填
监听任务并执行
两种,具体的可选参数可以输入命令加 --help
查看
更多使用
详情请查看官方文档说明 https://github.com/top-think/think-queue/tree/3.0
All versions of think-queue-amqp with dependencies
PHP Build Version
Package Version
Requires
php Version
>7.1
ext-json Version *
ext-json Version *
The package k99k5/think-queue-amqp contains the following files
Loading the files please wait ....