PHPackages                             hyperlab/laravel-pubsub-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. hyperlab/laravel-pubsub-rabbitmq

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

hyperlab/laravel-pubsub-rabbitmq
================================

An opinionated approach to implement Pub/Sub messaging in Laravel using RabbitMQ.

1.1.0(4y ago)04.7kMITPHPPHP ^8.0

Since Apr 16Pushed 4y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (10)Versions (14)Used By (0)

Laravel Pub/Sub RabbitMQ
========================

[](#laravel-pubsub-rabbitmq)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c70c4d6e1f8ae654eb3d106dcdc9fa883e169c126414ec62a21d9f657116fb9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68797065726c61622f6c61726176656c2d7075627375622d7261626269746d712e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hyperlab/laravel-pubsub-rabbitmq)[![GitHub Tests Action Status](https://camo.githubusercontent.com/29216643241f3e1b10811a3bb0249c733d0996e89a60aadad6ff68d2b47d3474/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f68797065726c61622d62652f6c61726176656c2d7075627375622d7261626269746d712f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/hyperlab-be/laravel-pubsub-rabbitmq/actions?query=workflow%3Arun-tests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/222cd03fe33c6796756d5abd6c5b6aed9961a5f95f04e0e9efe1f00f00554f1e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f68797065726c61622d62652f6c61726176656c2d7075627375622d7261626269746d712f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/hyperlab-be/laravel-pubsub-rabbitmq/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/ab79584bf5bd0bd153e1f7a7b53cee3d7eae91d2e3b2d455317e77f2c806eca1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68797065726c61622f6c61726176656c2d7075627375622d7261626269746d712e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hyperlab/laravel-pubsub-rabbitmq)

This package provides an opinionated approach to implement Pub/Sub messaging in Laravel using RabbitMQ.

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

[](#installation)

Install the package via composer:

```
composer require hyperlab/laravel-pubsub-rabbitmq
```

Publish the `config/pubsub.php` config file:

```
php artisan vendor:publish --provider="Hyperlab\LaravelPubSubRabbitMQ\PubSubServiceProvider" --tag="pubsub-rabbitmq-config"
```

Publish the `routes/subscriptions.php` routes file:

```
php artisan vendor:publish --provider="Hyperlab\LaravelPubSubRabbitMQ\PubSubServiceProvider" --tag="pubsub-rabbitmq-subscriptions"
```

Add the following snippet to your application's `config/queue.php` file.

```
