PHPackages                             sofwar/laravel-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. [HTTP &amp; Networking](/categories/http)
4. /
5. sofwar/laravel-rabbitmq

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sofwar/laravel-rabbitmq
=======================

Simple rabbitmq integration for Laravel

v0.5.2(11mo ago)020MITPHPPHP 7.\*|8.\*

Since May 22Pushed 11mo agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ab8699b234ba57c339244b7c8a739c737deba9f238324c4fa5ba5e90d34749ce/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f667761722f6c61726176656c2d7261626269746d712f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sofwar/laravel-rabbitmq/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/fbd1e34f3801548ec0814b7f65dcd99af1ab93b729dacccca7ee708afe5e95e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736f667761722f6c61726176656c2d7261626269746d712f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sofwar/laravel-rabbitmq/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/a9e2ab876364fbf91837e0cb0ecf834ac011a48ea9365fa5fd86fc4d1ad3b8a5/68747470733a2f2f706f7365722e707567782e6f72672f736f667761722f6c61726176656c2d7261626269746d712f646f776e6c6f616473)](https://packagist.org/packages/sofwar/laravel-rabbitmq)

Laravel RabbitMQ
================

[](#laravel-rabbitmq)

This package is a fork of [needle-project/laravel-rabbitmq](https://github.com/needle-project/laravel-rabbitmq), created to maintain and improve the library as the original has not been updated for some time. It provides a simple RabbitMQ integration for Laravel based on the Publish–Subscribe pattern, where the subscriber acts as the Consumer.

Table of Contents
=================

[](#table-of-contents)

1. [Install](#1-install)
2. [Configure](#2-configure)

    2.1. [Connections](#21-connection)

    2.2. [Queues](#22-queues)

    2.3. [Exchanges](#23-exchanges)

    2.4. [Publishers](#24-publishers)

    2.5. [Consumers](#25-consumers)
3. [Usage](#3-usage)

    3.1. [Publishing a message](#31-publishing-a-message)

    3.2. [Consuming a message](#32-consuming-a-message)

    3.3. [Available CLI commands](#33-available-commands)

    3.4. [Custom Message Processor](#34-custom-message-processor)
4. [Examples](#4-examples)
5. [Contribute](#5-contribute)

    5.1 [Local Development](#51-local-development)

    5.2 [Required Help](#52-required-help)
6. [Special "Thank You"](#6-special-thank-you)

1. Install
==========

[](#1-install)

Run:

```
composer require needle-project/laravel-rabbitmq
```

For Laravel version 5.5 or higher the library should be automatically loaded via [Package discovery](https://laravel.com/docs/5.6/packages#package-discovery).

For Laravel versions below 5.5 you need to add the service provider to `app.php`:

```
