vzool / horizon
Dashboard and code-driven configuration for Laravel queues.
v1.2.4
2018-02-20 16:08 UTC
Requires
- php: >=7.1.0
- ext-pcntl: *
- ext-posix: *
- cakephp/chronos: ^1.0
- illuminate/contracts: ~5.4
- illuminate/queue: ~5.4
- illuminate/support: ~5.4
- predis/predis: ^1.1
- ramsey/uuid: ^3.5
- symfony/debug: ~3.3|~4.0
Requires (Dev)
- mockery/mockery: ~1.0
- orchestra/database: ~3.5
- orchestra/testbench: ~3.5
- phpunit/phpunit: ~6.0
README
Introduction
Horizon provides a beautiful dashboard and code-driven configuration for your Laravel powered Redis queues. Horizon allows you to easily monitor key metrics of your queue system such as job throughput, runtime, and job failures.
All of your worker configuration is stored in a single, simple configuration file, allowing your configuration to stay in source control where your entire team can collaborate.
Setup
- Install by composer (required PHP 7.1+)
composer require vzool/horizon
- Add the following to
config/app.php
'providers' => [ // .. Vzool\Horizon\HorizonServiceProvider::class, ], 'aliases' => [ // .. "Horizon" => Vzool\Horizon\Horizon::class, ]
- Do
artisan
command
php artisan vendor:publish
- Add the follow to
app\Providers\AppServiceProvider.php
in order to secure/horizon
end point.
<?php namespace App\Providers; // .. use Vzool\Horizon\Horizon; class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { // .. // Add Horizon authentication [IGNORE IN DEV] Horizon::auth(function ($request) { // allow admins only to see this page // return \Auth::user()->is_admin; // or return any true / false }); } /** * Register any application services. * * @return void */ public function register() { // } }
- Browse
/horizon
and have fun with your X-Ray Vision. ;)
Official Documentation
Documentation for Horizon can be found on the Laravel website.
License
Laravel Horizon is open-sourced software licensed under the MIT license