Skip to content

janoszab/yii2-maintenance-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2-maintenance

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.

About

Yii2 maintenance mode module.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%