Download the PHP package mpalourdio/zf2-maintenance-mode without Composer
On this page you can find all versions of the php package mpalourdio/zf2-maintenance-mode. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mpalourdio/zf2-maintenance-mode
More information about mpalourdio/zf2-maintenance-mode
Files in mpalourdio/zf2-maintenance-mode
Package zf2-maintenance-mode
Short Description ZF2 maintenance mode module
License MIT
Homepage https://github.com/mpalourdio/zf2-maintenance-mode
Informations about the package zf2-maintenance-mode
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
Add "ZfMaintenanceMode" to your modules list in application.config.php
Eventually, copy to 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 option parameter.
Enable maintenance mode
Note: clear your cached configuration if needed.
Disable maintenance mode
All versions of zf2-maintenance-mode with dependencies
zendframework/zend-console Version ~2.3
zendframework/zend-mvc Version ~2.3
zendframework/zend-modulemanager Version ~2.3
zendframework/zend-http Version ~2.3