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

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

grigorieff/yii2-amqp
====================

Yii2 component for AMQP

05PHP

Since Aug 9Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 AMQP
=========

[](#yii2-amqp)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist grigorieff/yii2-amqp "*"

```

or add

```
"grigorieff/yii2-amqp": "*"
```

to the require section of your composer.json.

Configuration
-------------

[](#configuration)

Add to your app config:

```
    'components' => [

        .........

        'amqp' => [
            'class' => grigorieff\amqp\Amqp,
            'host' => 'localhost',
            'port' => '5672',
            'user' => 'guest',
            'password' => 'guest'
        ],

        .........

    ];
```

Usage
-----

[](#usage)

```
// get AMQP component
$amqp = Yii::$app->amqp;

// declare exchange
$amqp->exchangeDeclare('myExchange','fanout');

// declare queue
$amqp->queueDeclare('myQueue');

// binding queue
$amqp->bindQueueExchange('myQueue','myExchange');

// basic publish message
$amqp->basicPublish($message, $exchange, $routingKey);

......
```

License
-------

[](#license)

MIT

Requirements
------------

[](#requirements)

This Yii2 component require [PhpAmqpLib](https://github.com/videlalvaro/php-amqplib)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![grigorieff](https://avatars.githubusercontent.com/u/1093528?v=4)](https://github.com/grigorieff "grigorieff (3 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/grigorieff-yii2-amqp/health.svg)](https://phpackages.com/packages/grigorieff-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)
