AdamTyn / lumen-middleware-check-maintenance by AdamTyn

移植Laravel的 `CheckForMaintenanceMode` [检查维护模式]中间件到Lumen
4
1
2
Package Data
Maintainer Username: AdamTyn
Maintainer Contact: tynadam@foxmail.com (AdamTyn)
Package Create Date: 2020-10-22
Package Last Update: 2021-05-27
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-11-17 03:07:27
Package Statistics
Total Downloads: 4
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

lumen-middleware-check-maintenance

移植Laravel的 CheckForMaintenanceMode [检查维护模式]中间件到Lumen

Usage

'app/bootstrap/app.php' 中注册全局中间件:

$app->middleware([
    \AdamTyn\Lumen\Middleware\CheckForMaintenanceMode::class
]);

Attention

本组件单独使用并不能达到Laravel一样的效果,必须同时安装下面2个组件

| Library | Description | | :----------------------------------------------------------: | :--------------------------------------------------------: | | adamtyn/lumen-artisan-down | 移植Laravel的 php artisan down [进入维护模式]指令到Lumen | | adamtyn/lumen-artisan-up | 移植Laravel的 php artisan up [退出维护模式]指令到Lumen |