The preferred way to install this extension is through composer.
Either run
php composer require sankam/yii2-maintenance "*"
Or, you may add
"sankam/yii2-maintenance": "*"
to the require section of your composer.json
file and execute php composer update
.
In your application front config, add the path alias for this extension.
return [
...
'components' => [
...
'maintenance' => [
'class' => 'sankam\maintenance\Maintenance',
'enabled' => true
],
];