PHPackages                             codeigniterext/maintenancemode - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. codeigniterext/maintenancemode

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

codeigniterext/maintenancemode
==============================

Maintenance Mode module for CodeIgniter 4

0.0.2(3y ago)1011.3k↓33.3%3MITPHP

Since Jun 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/arashsaffari/maintenancemode)[ Packagist](https://packagist.org/packages/codeigniterext/maintenancemode)[ RSS](/packages/codeigniterext-maintenancemode/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Maintenance Mode for Codeigniter 4
==================================

[](#maintenance-mode-for-codeigniter-4)

Maintenance mode module for CodeIgniter 4 with CLI

Installing
----------

[](#installing)

```
$ composer require codeigniterext/maintenancemode
```

or

```
$ composer require codeigniterext/maintenancemode:dev-master
```

Now you can use the following commands from the command prompt

```
$ php spark mm:publish
$ php spark mm:down
$ php spark mm:status
$ php spark mm:up
```

---

Configuration
-------------

[](#configuration)

Run the following command from the command prompt, and it will copy views (error\_503.php) into your application

```
$ php spark mm:publish
```

Use it
------

[](#use-it)

#### Method 1 (Recommended)

[](#method-1-recommended)

edit application/Config/Events.php and add the new line top of the code for maintenance mode check:

```
Events::on('post_controller_constructor', 'CodeigniterExt\MaintenanceMode\Controllers\MaintenanceMode::check');
...
```

---

#### Method 2

[](#method-2)

edit application/Config/Filters.php and add the new line in $aliases array:

```
public $aliases = [
    'maintenancemode' => \CodeigniterExt\MaintenanceMode\Filters\MaintenanceMode::class,
    ...
]
```

and add "maintenancemode" in $globals\['before'\] array:

```
public $globals = [
    'before' => [
        'maintenancemode',
        ...
    ],
    'after'  => [
        ...
    ],
];
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.1% 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 ~1302 days

Total

2

Last Release

1242d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e2b5350dbcb74d6fd831b8150e27fd15979b6d792249a341b25434b00591c7f?d=identicon)[arashsaffari](/maintainers/arashsaffari)

---

Top Contributors

[![arashsaffari](https://avatars.githubusercontent.com/u/737229?v=4)](https://github.com/arashsaffari "arashsaffari (27 commits)")[![daycry](https://avatars.githubusercontent.com/u/7590335?v=4)](https://github.com/daycry "daycry (2 commits)")

### Embed Badge

![Health badge](/badges/codeigniterext-maintenancemode/health.svg)

```
[![Health](https://phpackages.com/badges/codeigniterext-maintenancemode/health.svg)](https://phpackages.com/packages/codeigniterext-maintenancemode)
```

PHPackages © 2026

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