PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (18)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 20 This week: 1All time: 11,180 This week: 560Up
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: 20 packages by
Country: Russian Federation Russian Federation
Age: 38
All time rank: 335492 in Russian Federation Russian Federation
Week rank: 411 Up22 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 14x

  Files folder image Files  
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  /  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  /  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  /  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  /  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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:20
This week:1
All time:11,180
This week:560Up