janoszab / yii2-maintenance-mode
Maintenance mode for Yii2 framework
Package info
github.com/janoszab/yii2-maintenance-mode
Type:yii2-extension
pkg:composer/janoszab/yii2-maintenance-mode
1.1.1
2014-12-27 21:04 UTC
Requires
- yiisoft/yii2: 2.*
This package is not auto-updated.
Last update: 2026-03-04 14:33:09 UTC
README
Installation
Add to the require section of your composer.json file:
"sacara/yii2-maintenance-mode": "*"
Add to your config file:
'bootstrap' => ['log', 'maintenance'], ... 'modules' => [ 'maintenance' => [ 'class' => 'sacara\maintenance\Module', // optional 'maintenanceFileOn' => 'maintenance.on', // default is `maintenance.on` ], ],
Create a file in the @web directory named maintenance.on to activate the maintenance mode.