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
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.
- 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"
}
- 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"
Documentation for Horizon can be found on the Laravel website.
Laravel Horizon is open-sourced software licensed under the MIT license