servocoder/lumen-horizon

Commands and code-driven configuration for Lumen queues.

v1.0.8 2017-12-29 08:31 UTC

This package is not auto-updated.

Last update: 2024-11-18 07:03:10 UTC


README

Lumen Horizon is based on the official Laravel Horizon package.

It provides the same features as original package except the dashboard UI because of the Lumen nature. However all stats are available with Horizon API routes. You are free to fetch and leverage the data on your own.

Alternatively, you can install another Laravel application with Horizon on the board to watch jobs and metrics of your Lumen applications. Yep, the Laravel Horizon dashboard will show supervisor's processes that you run with Lumen. Enjoy!

Tested with Lumen 5.5

Installation

The installation is almost the same as original package.

Note that the package namespace remains Laravel\Horizon, so don't install it along with original one to avoid conflicts.

  1. Composer dependency manager:
    composer require servocoder/lumen-horizon "~1.0"

Alternatively, add the dependency directly to your composer.json file:

    "require": {
        "servocoder/lumen-horizon": "~1.0"
    }
  1. Publish horizon.php file to the config folder:
    php artisan vendor:publish --tag=horizon-config

or, as suggested in the official package docs:

    php artisan vendor:publish --provider="Laravel\Horizon\HorizonServiceProvider"

Official Documentation

Documentation for Horizon can be found on the Laravel website.

License

Laravel Horizon is open-sourced software licensed under the MIT license