PHPackages                             sima-land/yii2-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. [Queues &amp; Workers](/categories/queues)
4. /
5. sima-land/yii2-amqp

ActiveYii2-extension[Queues &amp; Workers](/categories/queues)

sima-land/yii2-amqp
===================

Yii2 AMQP extension (wrapper on php-amqplib).

v0.4.0(5y ago)15.7k↓50%1[4 PRs](https://github.com/sima-land/yii2-amqp/pulls)MITPHPPHP &gt;=7.1

Since Dec 12Pushed 3y ago7 watchersCompare

[ Source](https://github.com/sima-land/yii2-amqp)[ Packagist](https://packagist.org/packages/sima-land/yii2-amqp)[ RSS](/packages/sima-land-yii2-amqp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (12)Used By (0)

yii2-amqp
=========

[](#yii2-amqp)

Yii2 AMQP extension

#### Installation

[](#installation)

You need run just this command:

```
composer require sima-land/yii2-amqp
```

#### Configuration

[](#configuration)

Example configuration:

```
return [
    'components' => [
        'amqp' => [
            'class' => \simaland\amqp\Component::class,
            'connection' => [
                'dsn' => 'amqp://user:password@host:port/vHost?='
            ],
            'queues' => [
                [
                    'name' => 'queueName',
                ],
            ],
            'exchanges' => [
                [
                    'name' => 'exchangeName',
                ],
            ],
            'routing' => [
                [
                    'sourceExchange' => 'exchangeName',
                    'targetQueue' => 'queueName',
                ],
            ],
            'consumer' => [
                'callbacks' => [
                    'queueName' => ,
                ],
            ],
        ],
    ],
];
```

#### Testing

[](#testing)

You must tests your changes by running this command:

```
composer test
```

#### Example

[](#example)

```
class AmpqController {

    public function actionSend()
    {
        $msg = \Yii::$app->amqp->createMessage('Test');
        $exchange = \Yii::$app->amqp->exchanges->current();
        $exchange->declare();
        \Yii::$app->amqp->producer->publish($msg, $exchange);
    }

    public function actionListen()
    {
        \Yii::$app->amqp->consumer->declare();
        \Yii::$app->amqp->consumer->consume();
    }
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.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 ~164 days

Recently: every ~204 days

Total

6

Last Release

1885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eb9295f02ad36cb8e74e884c7d826d619fc4ae39c743f682cf7cb493f3fd074e?d=identicon)[EvgenyGavrilov](/maintainers/EvgenyGavrilov)

![](https://www.gravatar.com/avatar/f034851183e167d1279b1baae4d09d7f3384318675ac7d2b9d82016ba7a7ebba?d=identicon)[pelmennoteam](/maintainers/pelmennoteam)

---

Top Contributors

[![pelmennoteam](https://avatars.githubusercontent.com/u/3477725?v=4)](https://github.com/pelmennoteam "pelmennoteam (28 commits)")[![des1roer](https://avatars.githubusercontent.com/u/10970793?v=4)](https://github.com/des1roer "des1roer (13 commits)")

---

Tags

rabbitmqmessage queueyii2extensionAMQP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sima-land-yii2-amqp/health.svg)

```
[![Health](https://phpackages.com/badges/sima-land-yii2-amqp/health.svg)](https://phpackages.com/packages/sima-land-yii2-amqp)
```

###  Alternatives

[mikemadisonweb/yii2-rabbitmq

Wrapper based on php-amqplib to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony 2, really awesome package.

74262.1k1](/packages/mikemadisonweb-yii2-rabbitmq)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)

PHPackages © 2026

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