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

ActiveLibrary[Queues &amp; Workers](/categories/queues)

anik/amqp
=========

php-amqplib wrapper that eases the consumption of RabbitMQ. A painless way of using RabbitMQ

v2.3(3y ago)135390.7k↓42.8%22[1 issues](https://github.com/ssi-anik/amqp/issues)[1 PRs](https://github.com/ssi-anik/amqp/pulls)1MITPHPPHP ^7.2|^8.0CI failing

Since Sep 3Pushed 3y ago4 watchersCompare

[ Source](https://github.com/ssi-anik/amqp)[ Packagist](https://packagist.org/packages/anik/amqp)[ RSS](/packages/anik-amqp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (2)Versions (12)Used By (1)

anik/amqp [![codecov](https://camo.githubusercontent.com/f2fad3775f41e52bfe4776ab1a0d8a343fb7ad826f5eec56cc499a2708e49041/68747470733a2f2f636f6465636f762e696f2f67682f7373692d616e696b2f616d71702f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d4d38384a41544455484e)](https://codecov.io/gh/ssi-anik/amqp)[![PHP Version Require](https://camo.githubusercontent.com/3f0eb042849dd792bf6eaf30bfe01a09481d0f6a75558c55ee835f1e10819b36/687474703a2f2f706f7365722e707567782e6f72672f616e696b2f616d71702f726571756972652f706870)](//packagist.org/packages/anik/amqp)[![Total Downloads](https://camo.githubusercontent.com/d9ab6ba102b2cd68f0c82359ca3de01f939875921d441b10291b347c7dd70515/687474703a2f2f706f7365722e707567782e6f72672f616e696b2f616d71702f646f776e6c6f616473)](//packagist.org/packages/anik/amqp)[![Latest Stable Version](https://camo.githubusercontent.com/03a9024ffb9f01401d764731e002a93be0faa785f904500efbc97e5874565bde/687474703a2f2f706f7365722e707567782e6f72672f616e696b2f616d71702f76)](//packagist.org/packages/anik/amqp)
===================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#anikamqp)

`anik/amqp` is a php-amqplib wrapper that eases the consumption of RabbitMQ. A painless way of using RabbitMQ.

Note
====

[](#note)

Previously, the package could be used with Laravel, Laravel Zero, Lumen out of the box. From `v2`, the Laravel support has been removed. If you are looking for implementation with Laravel, you can use [anik/laravel-amqp](https://github.com/ssi-anik/laravel-amqp). If you were using this package with Laravel, and you want to upgrade to **Laravel 9**, please consider using [anik/amqp-to-laravel-amqp](https://github.com/ssi-anik/amqp-to-laravel-amqp) if you want to migrate to `anik/laravel-amqp` later.

Examples
========

[](#examples)

Checkout the [repository](https://github.com/ssi-anik/laravel-rabbitmq-producer-consumer-example) for example.

Requirements
============

[](#requirements)

- PHP `^7.2 | ^8.0`
- PHP-AMQPLib `^3.0`

Installation
============

[](#installation)

To install the package, run

> `composer require anik/amqp`

Documentation
=============

[](#documentation)

For V1:

Connection
----------

[](#connection)

To create an AMQP Connection, you can use

- `Anik\Amqp\AmqpConnectionFactory::make`
- `Anik\Amqp\AmqpConnectionFactory::makeFromArray`

```
