PHPackages                             v-krivenko/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. v-krivenko/laravel-rabbitmq

ActiveLibrary

v-krivenko/laravel-rabbitmq
===========================

Simple rabbitmq integration for Laravel

1.0.2(2y ago)0122—0%MITPHPPHP ^8.0

Since Mar 12Pushed 2y agoCompare

[ Source](https://github.com/v-krivenko/laravel-rabbitmq)[ Packagist](https://packagist.org/packages/v-krivenko/laravel-rabbitmq)[ RSS](/packages/v-krivenko-laravel-rabbitmq/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (5)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4599516d99349e34abba9ee7a52d804a7be96a148c63d63f1d779e0050adcaa6/68747470733a2f2f7472617669732d63692e6f72672f6e6565646c652d70726f6a6563742f70726f636573732d7472616e73616374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/needle-project/process-transaction)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/33a3fd7fbebf87f639ca0c0da9e67e3f962b0a42dd84a53d8f9706d39cd2622c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6565646c652d70726f6a6563742f6c61726176656c2d7261626269746d712f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/needle-project/laravel-rabbitmq/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/2bf9b9c7cac1dfda3c4924cfc6aa845106706928c857072eb7193062536b77a7/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e6565646c652d70726f6a6563742f6c61726176656c2d7261626269746d712f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/needle-project/laravel-rabbitmq/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/2037fa6a8cf89c7e7a9bf86ca44f7045061a9c75f8828119f208c62b271d6d12/68747470733a2f2f706f7365722e707567782e6f72672f6e6565646c652d70726f6a6563742f6c61726176656c2d7261626269746d712f646f776e6c6f616473)](https://packagist.org/packages/needle-project/laravel-rabbitmq)

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

[](#laravel-rabbitmq)

A simple rabbitmq library for laravel based on Publish–Subscribe pattern where the subscriber is 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. [Contribute](#4-contribute)

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`:

```
