定制 usmanjdn93/lumen-8-maintenance-mode 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

usmanjdn93/lumen-8-maintenance-mode

最新稳定版本:v1.2.0

Composer 安装命令:

composer require usmanjdn93/lumen-8-maintenance-mode

包简介

Define application maintenance mode.

README 文档

README

Build Status Latest Stable Version Total Downloads License

php 7.2 Lumen 8.x

How to install

composer require usmanjdn93/lumen-8-maintenance-mode

How to configure

Add this to your AppServiceProvider or in bootstrap/app.php

$app->register(\usmanjdn93\MaintenanceMode\Providers\MaintenanceModeServiceProvider::class);

Add the up and down commands in app/console/Kernel.php

protected $commands = [
    \usmanjdn93\MaintenanceMode\Console\Commands\DownCommand::class,
    \usmanjdn93\MaintenanceMode\Console\Commands\UpCommand::class
];

Maintenance Mode on

php artisan down

Maintenance Mode off

php artisan up

IP based access

Currently only ipv4 and no ip ranges

Add ALLOWED_IPS in your .env file

ALLOWED_IPS=192.168.1.2,127.0.0.1,136.22.16.0

Features planned:

  • IP Ranges
  • Dynamic DNS IP Filtering

统计信息

  • 总下载量: 1.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 26
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-09-25