PHPackages                             lemonphp/cakeplugin-maintenance-mode - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lemonphp/cakeplugin-maintenance-mode

AbandonedArchivedCakephp-plugin

lemonphp/cakeplugin-maintenance-mode
====================================

A plugin to enable and disable maintenance mode for CakePHP

v0.1.0(10y ago)44202MITPHPPHP &gt;=5.5.9

Since Apr 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lemonphp/cakeplugin-maintenance-mode)[ Packagist](https://packagist.org/packages/lemonphp/cakeplugin-maintenance-mode)[ Docs](https://github.com/lemonphp/cakeplugin-maintenance-mode)[ RSS](/packages/lemonphp-cakeplugin-maintenance-mode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Introduction
============

[](#introduction)

[![Build Status](https://camo.githubusercontent.com/5081f26360be4f4d40deb1d79a23ca71180339187b7b75504c40d5f5a0731e3d/68747470733a2f2f7472617669732d63692e6f72672f6c656d6f6e7068702f63616b65706c7567696e2d6d61696e74656e616e63652d6d6f64652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lemonphp/cakeplugin-maintenance-mode)[![Coverage Status](https://camo.githubusercontent.com/19c9b63673da4dd9fc986b0e16d2fa677bd3300a8b6e2127d5558af882ed0efa/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c656d6f6e7068702f63616b65706c7567696e2d6d61696e74656e616e63652d6d6f64652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/lemonphp/cakeplugin-maintenance-mode?branch=master)

A plugin to enable and disable maintenance mode for CakePHP

Main features
-------------

[](#main-features)

- Show a page to alert application in maintenance mode
- Allow customize maintenance alert page template
- Allow enable and disable maintenance mode by shell
- Allow enable and disable maintenance mode by post request
- Allow access from some IPs when enabled maintenance mode
- Allow access some URLs when enabled maintenance mode
- 100% code coverage
- Support both CakePHP 3.x and 2.x

Requirements
------------

[](#requirements)

- php &gt;=5.5.9
- cakephp 3.x

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require lemonphp/cakeplugin-maintenance-mode

```

Usage
-----

[](#usage)

### Enable plugin

[](#enable-plugin)

Add this line to `config/bootstrap.php` file

```
Plugin::load('Lemon/CakePlugin/MaintenanceMode', ['bootstrap' => true]);

```

### Enable maintenance mode

[](#enable-maintenance-mode)

```
$ bin/cake maintenance_mode enable

```

Using option `--force` to enable maintenance mode with default config:

- View class: `\App\View\AppView`
- Templatce: `Pages/maintenance.ctp`
- Layout: `default`
- Time: a hour from now

### Disable maintenance mode

[](#disable-maintenance-mode)

```
$ bin/cake maintenance_mode disable

```

Changelog
---------

[](#changelog)

See all change logs in [CHANGELOG.md](https://github.com/lemonphp/cakeplugin-maintenance-mode/blob/master/CHANGELOG.md)

Contributing
------------

[](#contributing)

All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send a pull request.

To ensure a consistent code base, you should make sure the code follows the [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md).

If you would like to help take a look at the [list of issues](https://github.com/lemonphp/cakeplugin-maintenance-mode/issues).

License
-------

[](#license)

This project is released under the MIT License. Copyright © 2015-2016 LemonPHP Team.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3664d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b32dfbbbf603d0317f2ab7ab33c7c7611e90f6701c5c84f07a8b537aa84e83f7?d=identicon)[oanhnn](/maintainers/oanhnn)

---

Top Contributors

[![oanhnn](https://avatars.githubusercontent.com/u/1757120?v=4)](https://github.com/oanhnn "oanhnn (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lemonphp-cakeplugin-maintenance-mode/health.svg)

```
[![Health](https://phpackages.com/badges/lemonphp-cakeplugin-maintenance-mode/health.svg)](https://phpackages.com/packages/lemonphp-cakeplugin-maintenance-mode)
```

###  Alternatives

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M156](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M26](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
