servocoder / lumen-horizon
Commands and code-driven configuration for Lumen queues.
Requires
- php: >=7.1.0
- ext-pcntl: *
- ext-posix: *
- cakephp/chronos: ^1.0
- illuminate/contracts: ~5.5
- illuminate/queue: ~5.5
- illuminate/support: ~5.5
- predis/predis: ^1.1
- ramsey/uuid: ^3.5
- symfony/debug: ~3.3
Requires (Dev)
- laravelista/lumen-vendor-publish: ~2.0
- mockery/mockery: ~1.0
- orchestra/database: ~3.5
- orchestra/lumen: ~3.5
- orchestra/testbench: ~3.5
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2024-11-04 06:53:17 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.
- 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"
Official Documentation
Documentation for Horizon can be found on the Laravel website.
License
Laravel Horizon is open-sourced software licensed under the MIT license