janoszab / yii2-maintenance-mode
Maintenance mode for Yii2 framework
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:yii2-extension
Requires
- yiisoft/yii2: 2.*
This package is not auto-updated.
Last update: 2025-08-20 12:11:20 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.