hys111 / lumen-horizon by hys111

Dashboard and code-driven configuration for Laravel-lumen queues.
3,476
4
1
Package Data
Maintainer Username: hys111
Maintainer Contact: 491483276@qq.com (hys1993)
Package Create Date: 2021-12-24
Package Last Update: 2022-03-07
Language: PHP
License: MIT
Last Refreshed: 2024-11-17 03:08:22
Package Statistics
Total Downloads: 3,476
Monthly Downloads: 21
Daily Downloads: 0
Total Stars: 4
Total Watchers: 1
Total Forks: 0
Total Open Issues: 1

Introduction

Lumen Horizon is based on the official Laravel Horizon (v5.x) package. It provides the same features as original package except the UI. Tested with Lumen 8

Installation

  1. Important! Uncomment in your bootstrap/app.php
$app->withFacades();
$app->withEloquent();

Make sure you register Illuminate\Redis\RedisServiceProvider::class in your boorstrap/app.php file.

    $app->register(Illuminate\Redis\RedisServiceProvider::class);

Add in your bootstrap/app.php

$app->configure('app');
  1. Run composer to add the dependency.
    composer require laravel-lumen/horizon
  1. Publish config add the horizon.php to config/horizon
    cp vendor/horizon-lumen/config/horizon.php config/horizon.php
  1. register provider in your bootstrap/app.php
    // add provider
    $app->register(Laravel\Horizon\HorizonServiceProvider::class);
    // add config
    $app->configure('horizon');

Official Documentation

Documentation for Horizon can be found on the Laravel website.