laravel-lumen / horizon
为 Laravel-lumen 队列提供仪表板和代码驱动配置。
v1.0.7
2022-03-07 09:07 UTC
Requires
- php: ^7.3|^8.0
- ext-json: *
- ext-pcntl: *
- ext-posix: *
- illuminate/contracts: ^8.17
- illuminate/notifications: ^8.17
- illuminate/queue: ^8.17
- illuminate/support: ^8.17
- nesbot/carbon: ^2.17
- ramsey/uuid: ^4.0
- symfony/error-handler: ^5.0
- symfony/process: ^5.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
- predis/predis: ^1.1
Suggests
- ext-redis: Required to use the Redis PHP driver.
- predis/predis: Required when not using the Redis PHP driver (^1.1).
README
Lumen Horizon 是基于官方的 Laravel Horizon (v5.x) 包。除了界面外,它提供了与原始包相同的所有功能。已在 Lumen 8 上测试。
安装
- 重要!在您的
bootstrap/app.php
中取消注释
$app->withFacades(); $app->withEloquent();
确保您在 boorstrap/app.php
文件中注册了 Illuminate\Redis\RedisServiceProvider::class
。
$app->register(Illuminate\Redis\RedisServiceProvider::class);
在您的 bootstrap/app.php
中添加以下内容
$app->configure('app');
- 运行 composer 以添加依赖项。
composer require laravel-lumen/horizon
- 发布配置,将
horizon.php
添加到 config/horizon
cp vendor/horizon-lumen/config/horizon.php config/horizon.php
- 在您的
bootstrap/app.php
中注册提供者
// add provider $app->register(Laravel\Horizon\HorizonServiceProvider::class); // add config $app->configure('horizon');
官方文档
有关 Horizon 的文档可以在 Laravel 网站 上找到。