Download the PHP package chenjiahao/swoft-rabbitmq-pool without Composer
On this page you can find all versions of the php package chenjiahao/swoft-rabbitmq-pool. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chenjiahao/swoft-rabbitmq-pool
More information about chenjiahao/swoft-rabbitmq-pool
Files in chenjiahao/swoft-rabbitmq-pool
Download chenjiahao/swoft-rabbitmq-pool
More information about chenjiahao/swoft-rabbitmq-pool
Files in chenjiahao/swoft-rabbitmq-pool
Vendor chenjiahao
Package swoft-rabbitmq-pool
Short Description swoft rabbitmq-pool swoft框架的 rabbitmq 连接池
License Apache-2.0
Package swoft-rabbitmq-pool
Short Description swoft rabbitmq-pool swoft框架的 rabbitmq 连接池
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package swoft-rabbitmq-pool
swoft框架的 rabbitmq 连接池
composer require chenjiahao/swoft-rabbitmq-pool
'rabbitmq-config' => [
'class' => RabbitmqConfig::class, // /cjhswoftRabbitmq/RabbitmqConfig::class
'host' => '127.0.0.1',
'port' => 5672,
'vhost' => '/',
'username' => 'guest',
'password' => 'guest',
],
'rabbitmq.pool' => [
'class' => Pool::class, // /cjhswoftRabbitmq/Pool::class
'rabbitmqConfig' => bean('rabbitmq-config'),
'mark' => 'rabbitmq_pool', //连接池的唯一标识符,必须唯一 , 不能重复
'minActive' => 10,
'maxActive' => 20,
'maxWait' => 0,
'maxWaitTime' => 0,
'maxIdleTime' => 40,
]
使用::
获取连接 \cjhswoftRabbitmq\Rabbitmq::connection(string $pool = 'rabbitmq.pool' )
All versions of swoft-rabbitmq-pool with dependencies
PHP Build Version
Package Version
Requires
swoft/framework Version
~2.0.0
swoft/connection-pool Version ~2.0.0
php-amqplib/php-amqplib Version *
swoft/connection-pool Version ~2.0.0
php-amqplib/php-amqplib Version *
The package chenjiahao/swoft-rabbitmq-pool contains the following files
Loading the files please wait ....