PHPackages                             chaogang/yii-amqp - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chaogang/yii-amqp

ActiveYii-extension[Utility &amp; Helpers](/categories/utility)

chaogang/yii-amqp
=================

AMQP adapter for Yii

v3.0.0(12y ago)023MITPHPPHP &gt;=5.3.0

Since Jun 26Pushed 5y agoCompare

[ Source](https://github.com/chaogang/YiiAMQP)[ Packagist](https://packagist.org/packages/chaogang/yii-amqp)[ RSS](/packages/chaogang-yii-amqp/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

YiiAMQP
=======

[](#yiiamqp)

YiiAMQP is a fully functional AMQP producer and conusumer Yii application component.

\##Requirements

Tested with Yii version 1.1.13

\##Quick Start

Install via composer, then configure your application to use this component by adding and updating to match your needs the following configuration

```
'components' => array(
        'mq' => array(
            'class' => 'YiiAMQP\Client',
            'connection' => array(
                'host' => 'localhost',
                'port' => '5672',
                'vhost' => '/',
                'user' => 'guest',
                'password' => 'guest'
            )
        ),
```

\##Usage

### Producer

[](#producer)

```
$myMessage = array('greeting' => 'Hello World');
Yii::app()->mq->exchanges->greeter->send($myMessage); // will be JSON encoded
```

### Consumer

[](#consumer)

Initialise the component

```
Yii::app()->mq->defaultQueue->consume(function($message){ print_r($message); });
Yii::app()->mq->queues->myQueue->consume(function($message){ print_r($message); });
Yii::app()->mq->wait(); // wait for results
```

\##Contributing Please submit all pull requests against \*-wip branches. Thanks!

\##Bug tracker If you find any bugs, please create an issue at

\##Credits

- php-amqplib \[\] Vadim Zaliva
- rabbitMQ \[\] VMWare

\##License

MIT.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 84.3% 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 ~3 days

Total

9

Last Release

4681d ago

Major Versions

1.0.0 → 2.0.02013-06-26

2.0.5 → v3.0.02013-07-19

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=5.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ffaaa47edf939c1ce406e9684dfd83caf5900e22676bf2814fd5a22492b69a9?d=identicon)[514728345@qq.com](/maintainers/514728345@qq.com)

---

Top Contributors

[![mteichtahl](https://avatars.githubusercontent.com/u/1817657?v=4)](https://github.com/mteichtahl "mteichtahl (75 commits)")[![phpnode](https://avatars.githubusercontent.com/u/363611?v=4)](https://github.com/phpnode "phpnode (9 commits)")[![igaponov](https://avatars.githubusercontent.com/u/4271889?v=4)](https://github.com/igaponov "igaponov (3 commits)")[![chaogang](https://avatars.githubusercontent.com/u/25819580?v=4)](https://github.com/chaogang "chaogang (2 commits)")

### Embed Badge

![Health badge](/badges/chaogang-yii-amqp/health.svg)

```
[![Health](https://phpackages.com/badges/chaogang-yii-amqp/health.svg)](https://phpackages.com/packages/chaogang-yii-amqp)
```

###  Alternatives

[amplifier/yii-amqp

AMQP adapter for Yii

2237.0k](/packages/amplifier-yii-amqp)

PHPackages © 2026

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