PHPackages                             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. land/yii2-amqp

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

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

Yii2 AMQP extension (wrapper on php-amqplib).

04PHP

Since Dec 10Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 59.4% 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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