PHPackages                             spaiter/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. spaiter/yii-amqp

ActiveYii-extension

spaiter/yii-amqp
================

AMQP adapter for Yii

3.0.0(12y ago)153MITPHPPHP &gt;=5.3.0

Since Jun 26Pushed 12y agoCompare

[ Source](https://github.com/spaiter/YiiAMQP)[ Packagist](https://packagist.org/packages/spaiter/yii-amqp)[ RSS](/packages/spaiter-yii-amqp/feed)WikiDiscussions master Synced 1mo 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 [https://github.com/mteichtahl/YiiAMQP/issues](https://github.com/mteichtahl/YiiAMQP/issues)

##Credits

- php-amqplib [https://github.com/videlalvaro/php-amqplib] Vadim Zaliva lord@crocodile.org
- rabbitMQ [http://www.rabbitmq.com/] VMWare

##License

MIT.
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 83.5% 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.6 → 3.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/2ddede55d5d40605dc2ce568a37aabcd349b54535cbdc02437c1d5422c898888?d=identicon)[spaiter](/maintainers/spaiter)

---

Top Contributors

[![mteichtahl](https://avatars.githubusercontent.com/u/1817657?v=4)](https://github.com/mteichtahl "mteichtahl (71 commits)")[![phpnode](https://avatars.githubusercontent.com/u/363611?v=4)](https://github.com/phpnode "phpnode (9 commits)")[![spaiter](https://avatars.githubusercontent.com/u/6448350?v=4)](https://github.com/spaiter "spaiter (5 commits)")

### Embed Badge

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

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

###  Alternatives

[amplifier/yii-amqp

AMQP adapter for Yii

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

Abstraction layer for message brokers and job servers, including process management

1112.3k](/packages/sweatshop-sweatshop)[coincheck/coincheck

Bindings of coincheck API

202.2k](/packages/coincheck-coincheck)

PHPackages © 2026

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