PHPackages                             mpalourdio/zf2-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. [Framework](/categories/framework)
4. /
5. mpalourdio/zf2-maintenance-mode

AbandonedArchivedLibrary[Framework](/categories/framework)

mpalourdio/zf2-maintenance-mode
===============================

ZF2 maintenance mode module

0.2.2(10y ago)28.5k5[1 issues](https://github.com/mpalourdio/zf2-maintenance-mode/issues)MITPHPPHP &gt;=5.5

Since Jun 12Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (6)Used By (0)

[![PHP 7.0+](https://camo.githubusercontent.com/661ec2b3805144b308f076cd3a7324daf1050bb3608c286ed3e0d49df1c3b03b/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d372e302b2d3838393242462e737667)](http://php.net)[![MIT Licensed](https://camo.githubusercontent.com/7bb7f9228d9997f09c313c4364647ef637486acd002aae26119a4e2cbf0ee808/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61646c6177736f6e2f766576616c2e737667)](LICENSE)

zf2 maintenance mode
====================

[](#zf2-maintenance-mode)

This ZF2 "maintenance mode" module allows you to stall your application to maintenance (503 by default) via CLI. It's heavily inspired from the \[apigility development mode module\] ().

It mainly short-circuits the module manager during modules initialization and short-circuits the framework bootstrapping to prevent any service to load, like db connections for example.

Requirements
============

[](#requirements)

PHP 7.0+

Installation
============

[](#installation)

Run the command below to install via Composer

```
composer require mpalourdio/zf2-maintenance-mode
```

Add "ZfMaintenanceMode" to your **modules list** in **application.config.php**

Eventually, copy `maintenance.config.global.php.dist` to `config/autoload/maintenance.config.global.php` to personalize the message and/or the http status code and/or the path of the flag file.

Instead of the message, you can add an html status page by providing the `html` option parameter.

Enable maintenance mode
=======================

[](#enable-maintenance-mode)

```
cd path/to/project/root
php public/index.php maintenance enable
```

Note: clear your cached configuration if needed.

Disable maintenance mode
========================

[](#disable-maintenance-mode)

```
cd path/to/project/root
php public/index.php maintenance disable
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance24

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.2% 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

Every ~68 days

Total

4

Last Release

3788d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4fdbda774ff506689d09a6030ea897b292188db54d9edb53af8289d8313e9da8?d=identicon)[mpalourdio](/maintainers/mpalourdio)

---

Top Contributors

[![mpalourdio](https://avatars.githubusercontent.com/u/5034671?v=4)](https://github.com/mpalourdio "mpalourdio (25 commits)")[![gsteel](https://avatars.githubusercontent.com/u/2803720?v=4)](https://github.com/gsteel "gsteel (1 commits)")

---

Tags

maintenancemodulezf2frameworkzf2maintenance

### Embed Badge

![Health badge](/badges/mpalourdio-zf2-maintenance-mode/health.svg)

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

PHPackages © 2026

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