PHP Classes

Yii2 Maintenance: Implement a PHP maintenance mode in a Web site

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 20 All time: 11,286 This week: 673Up
Version License PHP version Categories
yii2-maintenance 1.0MIT/X Consortium ...5PHP 5, System information, Libraries
Description 

Author

This package can implement a PHP maintenance mode in a Web site.

It provides a component for the Yii2 framework that can observe when a maintenance mode is enabled and allow applications to configure how the site can behave during the maintenance mode.

The package allows applications to define callback functions that implement custom actions when maintenance mode is enabled or will be enabled soon.

Applications can implement maintenance mode actions that show warnings on the Web pages and only allow users accessing from specific IP addresses to access the site features.

Innovation Award
PHP Programming Innovation award nominee
October 2022
Number 7
Once in a while, Web sites need to perform some maintenance tasks, such as updating the site application database schema to support new features.

During maintenance updates, the sites should not be accessible to regular users because the maintenance tasks may cause user interactions that lead to changes in information stored in the site database.

This package provides a solution to implement maintenance mode behaviors, for instance, showing warnings or only allowing administrators to access certain features of the sites.


Manuel Lemos
Picture of Insolita
  Performance   Level  
Name: Insolita <contact>
Classes: 25 packages by
Country: Russian Federation Russian Federation
Age: 38
All time rank: 330890 in Russian Federation Russian Federation
Week rank: 7 Up1 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 18x

  Files folder image Files (18)  
File Role Description
Files folder imagesrc (3 files)
Files folder imagetests (4 files, 2 directories)
Accessible without login Plain text file .scrutinizer.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file codeception.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (18)  /  src  
File Role Description
  Plain text file IConfig.php Class Class source
  Plain text file Maintenance.php Class Class source
  Plain text file MaintenanceAction.php Class Class source

  Files folder image Files (18)  /  tests  
File Role Description
Files folder imageconfig (2 files)
Files folder imageunit (3 files)
  Accessible without login Plain text file .env Data Auxiliary data
  Accessible without login Plain text file bootstrap.php Example Example script
  Accessible without login Plain text file unit.suite.yml Data Auxiliary data
  Accessible without login Plain text file yii Example Example script

  Files folder image Files (18)  /  tests  /  config  
File Role Description
  Accessible without login Plain text file base.php Aux. Auxiliary script
  Accessible without login Plain text file console.php Aux. Auxiliary script

  Files folder image Files (18)  /  tests  /  unit  
File Role Description
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Plain text file DummyConfig.php Class Class source
  Plain text file MaintenanceTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:0
All time:11,286
This week:673Up