A package to get RabbitMQ working with Laravel Horizon
Switch branches/tags
Nothing to show
Clone or download
Permalink
Failed to load latest commit information.
src Apply fixes from StyleCI Sep 14, 2018
.gitignore feat: initial commit Sep 14, 2018
.styleci.yml feat: initial commit Sep 14, 2018
CHANGELOG.md feat: initial commit Sep 14, 2018
LICENSE feat: initial commit Sep 14, 2018
README.md doc: move readme Sep 14, 2018
composer.json feat: stricter dependencies Sep 15, 2018

README.md

Laravel Horizon RabbitMQ

Latest Stable Version Total Downloads StyleCI License: MIT

A service provider to add support for a RabbitMQ queue driver to Laravel Horizon.

Table of contents

Installation

Installation using composer:

composer require designmynight/laravel-horizon-rabbitmq

Laravel version Compatibility

Laravel Package
5.6.x 0.1.x

And add the service provider in config/app.php:

DesignMyNight\Laravel\Horizon\HorizonServiceProvider::class,

Configuration

Be sure to set the connection of your supervisor queue to rabbitmq in config/horizon.php:

'environments' => [
        'production' => [
            'supervisor-1' => [
                'connection' => 'rabbitmq',
                'queue' => ['default'],
                'balance' => 'simple',
                'processes' => 8,
                'tries' => 3,
            ],
        ],

The service provider will overide the default laravel horizon redis queue and redis job classes with a RabbitMQ implentation in order to trigger the necessary events for horizon to function correctly.