PHPackages                             iconvt/tswoft-rabbitmq - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. iconvt/tswoft-rabbitmq

ActiveLibrary[Queues &amp; Workers](/categories/queues)

iconvt/tswoft-rabbitmq
======================

基于swoft封装的rabbitmq连接池

v1.0.2(6y ago)014Apache-2.0PHP

Since Dec 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/iconvt/tswoft-rabbitmq)[ Packagist](https://packagist.org/packages/iconvt/tswoft-rabbitmq)[ RSS](/packages/iconvt-tswoft-rabbitmq/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

tswoft-rabbitmq
===============

[](#tswoft-rabbitmq)

rabbitmq-pool swoft 仿redis-pool

配置
--

[](#配置)

bean.php

```
return [
  'rabbitMq' =>[
        'class' => \Ticonv\Swoft\RabbitMq\MqClient::class,
        'host' =>   '127.0.0.1',
        'port' =>   5672,
        'userName'  =>  'admin',
        'passWord'  =>  '******',
        'setting'   =>  [
            'vhost'  =>  '/',
            'insist'  => false,
            'login_method'=>'AMQPLAIN',
            'login_response'=>null,
            'locale'=>'en_US',
            'connection_timeout'=>3.0,
            'read_write_timeout'=>3.0,
            'context'=>null,
            'keepalive'=>false,
            'heartbeat'=>0
        ]
    ],
    'rabbitMq.pool'    =>  [
        'class' =>  \Ticonv\Swoft\RabbitMq\Pool::class,
        'client'=>  bean(\Ticonv\Swoft\RabbitMq\MqClient::class),
        'maxActive' => 10
    ]
]
```

使用
--

[](#使用)

```
$pool = bean(\Ticonv\Swoft\RabbitMq\Pool::class);
$connection = $pool->connect();
$client = $connection->getClient();
$channel = $client->channel();
$channel->queue_declare('hello', false, false, false, false);

$msg = new AMQPMessage('Hello World!');
$channel->basic_publish($msg, '', 'hello');
$channel->close();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2342d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bf81f89a8fe2b857bff495d8528df8644f2f12557e0279b2a8309c5f5daa9b6?d=identicon)[iconvt](/maintainers/iconvt)

---

Top Contributors

[![iconvt](https://avatars.githubusercontent.com/u/34267667?v=4)](https://github.com/iconvt "iconvt (13 commits)")

---

Tags

phpswooleswoftphp-amqplib

### Embed Badge

![Health badge](/badges/iconvt-tswoft-rabbitmq/health.svg)

```
[![Health](https://phpackages.com/badges/iconvt-tswoft-rabbitmq/health.svg)](https://phpackages.com/packages/iconvt-tswoft-rabbitmq)
```

###  Alternatives

[swoft/db

swoft database component

24167.4k11](/packages/swoft-db)[swoft/redis

swoft redis component

12168.4k16](/packages/swoft-redis)[swoft/rpc-server

swoft rpc server component

10138.8k5](/packages/swoft-rpc-server)[swoft/websocket-server

swoft websocket server component

16134.1k5](/packages/swoft-websocket-server)[curtis18/swoft-pgsql

swoft postgresql component

101.1k1](/packages/curtis18-swoft-pgsql)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
