定制 mpalourdio/zf2-maintenance-mode 二次开发

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

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

mpalourdio/zf2-maintenance-mode

最新稳定版本:0.2.2

Composer 安装命令:

composer require mpalourdio/zf2-maintenance-mode

包简介

ZF2 maintenance mode module

README 文档

README

PHP 7.0+ MIT Licensed

zf2 maintenance mode

This ZF2 "maintenance mode" module allows you to stall your application to maintenance (503 by default) via CLI. It's heavily inspired from the [apigility development mode module] (https://github.com/zfcampus/zf-development-mode).

It mainly short-circuits the module manager during modules initialization and short-circuits the framework bootstrapping to prevent any service to load, like db connections for example.

Requirements

PHP 7.0+

Installation

Run the command below to install via Composer

composer require mpalourdio/zf2-maintenance-mode

Add "ZfMaintenanceMode" to your modules list in application.config.php

Eventually, copy maintenance.config.global.php.dist to config/autoload/maintenance.config.global.php to personalize the message and/or the http status code and/or the path of the flag file.

Instead of the message, you can add an html status page by providing the html option parameter.

Enable maintenance mode

cd path/to/project/root
php public/index.php maintenance enable

Note: clear your cached configuration if needed.

Disable maintenance mode

cd path/to/project/root
php public/index.php maintenance disable

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-11