Download the PHP package limingxinleo/swoft-amqplib without Composer
On this page you can find all versions of the php package limingxinleo/swoft-amqplib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download limingxinleo/swoft-amqplib
More information about limingxinleo/swoft-amqplib
Files in limingxinleo/swoft-amqplib
Download limingxinleo/swoft-amqplib
More information about limingxinleo/swoft-amqplib
Files in limingxinleo/swoft-amqplib
Please rate this library. Is it a good library?
Informations about the package swoft-amqplib
swoft-amqplib
安装
composer require limingxinleo/swoft-amqplib
使用
Yii2框架
class DemoMessage extends Publisher
{
protected $exchange = 'demo';
protected $queue = 'demo.queue';
protected $routingKey = 'test';
public function getConnection(): Connection
{
return YiiConnection::instance()->build();
}
}
$msg = new DemoMessage();
$msg->setData(['id' => $id]);
$msg->publish();
Swoft 框架
$msg = new DemoMessage();
$msg->setData(['id' => $id]);
$msg->publish();
Swoft 对应配置默认值
RABBITMQ_MIN_ACTIVE=5
RABBITMQ_MAX_ACTIVE=10
RABBITMQ_MAX_WAIT=20
RABBITMQ_MAX_WAIT_TIME=3
RABBITMQ_MAX_IDLE_TIME=120
RABBITMQ_TIMEOUT=3
RABBITMQ_URI=127.0.0.1:5672
RABBITMQ_USER=guest
RABBITMQ_PASSWORD=guest
RABBITMQ_VHOST=/
RABBITMQ_PARAMS_INSIST=false
RABBITMQ_PARAMS_LOGIN_METHOD=AMQPLAIN
RABBITMQ_PARAMS_LOGIN_RESPONSE=null
RABBITMQ_PARAMS_LOCALE=en_US
RABBITMQ_PARAMS_CONNECTION_TIMEOUT=3
RABBITMQ_PARAMS_READ_WRITE_TIMEOUT=3
RABBITMQ_PARAMS_CONTEXT=null
RABBITMQ_PARAMS_KEEPALIVE=false
RABBITMQ_PARAMS_HEARTBEAT=0
All versions of swoft-amqplib with dependencies
PHP Build Version
Package Version
The package limingxinleo/swoft-amqplib contains the following files
Loading the files please wait ....