PHPackages                             elementfani/yii2-rabbitmq - 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. elementfani/yii2-rabbitmq

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

elementfani/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.

3.0.1(4y ago)01.1kMITPHPPHP ^7.0 || ^8.0

Since Dec 2Pushed 4y agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (25)Used By (0)

RabbitMQ Extension for Yii2
===========================

[](#rabbitmq-extension-for-yii2)

Wrapper based on php-amqplib library to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony framework.

This documentation is relevant for the version 2.\*, which require PHP version &gt;=7.0. For legacy PHP applications &gt;=5.4 please use [previous version of this extension](https://github.com/mikemadisonweb/yii2-rabbitmq/blob/master/README_v1.md).

[![Latest Stable Version](https://camo.githubusercontent.com/f0e9097ad3fe1898bb9388d3bad49120d0a577416a576755a3c3ea87f788fae6/68747470733a2f2f706f7365722e707567782e6f72672f6d696b656d616469736f6e7765622f796969322d7261626269746d712f762f737461626c65)](https://packagist.org/packages/mikemadisonweb/yii2-rabbitmq)[![License](https://camo.githubusercontent.com/de9aa97fbfd675b1d23de8f8e3662e6979d3dc2a45e89bd9e1b2d0f33273547b/68747470733a2f2f706f7365722e707567782e6f72672f6d696b656d616469736f6e7765622f796969322d7261626269746d712f6c6963656e7365)](https://packagist.org/packages/mikemadisonweb/yii2-rabbitmq)[![Build Status](https://camo.githubusercontent.com/c895049fd0c2fdd223fe50bf53e5c65b5ed59b2137af6799715b4ca425343949/68747470733a2f2f7472617669732d63692e6f72672f6d696b656d616469736f6e7765622f796969322d7261626269746d712e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mikemadisonweb/yii2-rabbitmq)[![Coverage Status](https://camo.githubusercontent.com/d592224eca8d694ea6d9b55e016536451cb20332b09ef6c111f76845c9e4c324/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d696b656d616469736f6e7765622f796969322d7261626269746d712f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/mikemadisonweb/yii2-rabbitmq?branch=master)[![FOSSA Status](https://camo.githubusercontent.com/74b8a3ecf27d849e0e269a77a2a23154982627b6c43bb8a472010e013c8f0d15/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f6769742532426769746875622e636f6d2532466d696b656d616469736f6e776562253246796969322d7261626269746d712e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmikemadisonweb%2Fyii2-rabbitmq?ref=badge_shield)

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

[](#installation)

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

Either run

```
php composer.phar require mikemadisonweb/yii2-rabbitmq

```

or add

```
"mikemadisonweb/yii2-rabbitmq": "^2.2.0"
```

to the require section of your `composer.json` file.

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

[](#configuration)

This extension facilitates the creation of RabbitMQ [producers and consumers](https://www.rabbitmq.com/tutorials/tutorial-three-php.html) to meet your specific needs. This is an example basic config:

```
