fof/horizon

Adds Laravel Horizon to Flarum

Fund package maintenance!
Open Collective

Installs: 44

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:flarum-extension

v1.0.0 2025-02-15 19:19 UTC

This package is auto-updated.

Last update: 2025-02-16 13:03:31 UTC


README

This extension adds full integration for Laravel Horizon.

Which includes:

  • a dashboard at (yoursite.com/admin/horizon)
  • scalable redis workers with balancing strategies
  • multiple scalable redis worker servers (untested)
  • and much more.

Laravel Horizon runs only using a redis connection. As such you have to configure fof/redis. If you don't you will see errors pop up.

Installation

Install manually with composer:

composer require fof/horizon:"*"

Set up

Enable the extension from your admin area and then run php flarum horizon. This will only run as long as your process is active, so make sure to set it up using supervisor or something similar, see the Horizon Documentation for instructions.

Configure

By default this extension will set up a default queue connection called horizon using redis. You can override the full horizon config using an extender in your local extend.php in the root of your flarum installation:

<?php

return [
    (new FoF\Horizon\Extend\Horizon)->config(
        './your-horizon-config.php'
    )
];

Links