PHPackages                             el-schneider/statamic-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. el-schneider/statamic-maintenance-mode

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

el-schneider/statamic-maintenance-mode
======================================

Set your statamic site into maintenance mode

v0.3.1(2mo ago)1197↑63.6%3MITPHPPHP ^8.2CI passing

Since Jan 3Pushed 2mo agoCompare

[ Source](https://github.com/el-schneider/statamic-maintenance-mode)[ Packagist](https://packagist.org/packages/el-schneider/statamic-maintenance-mode)[ Fund](https://www.buymeacoffee.com/el.schneider)[ RSS](/packages/el-schneider-statamic-maintenance-mode/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (16)Versions (10)Used By (0)

[![Auto Alt Text](images/mm_banner.png)](images/mm_banner.png)

Statamic Maintenance Mode
=========================

[](#statamic-maintenance-mode)

> Manage maintenance mode through Statamic's control panel using Laravel's native maintenance system

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

[](#requirements)

- Statamic 5 or 6
- PHP 8.3+

Features
--------

[](#features)

- **Laravel Native:** Uses Laravel's built-in `artisan down`/`up` commands, supporting all standard options like retry headers, refresh intervals, and secret bypass URLs
- **Flexible Display:** Show any Statamic entry as your maintenance page, or use Laravel's default 503 error template
- **Bypass URLs:** Generate shareable secret URLs that grant access during maintenance
- **Page Whitelisting:** Keep specific entries accessible while the rest of the site is down
- **CP and CLI:** Manage maintenance mode through the control panel or terminal interchangeably

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

[](#installation)

```
composer require el-schneider/statamic-maintenance-mode
```

The addon automatically detects your Statamic version and uses the appropriate UI — an Inertia Vue component on v6, a Blade view on v5.

Usage
-----

[](#usage)

Navigate to **Utilities &gt; Maintenance** in the control panel to configure and activate maintenance mode.

Access is controlled through Statamic permissions:

- `access maintenance-mode utility` shows the utility in the control panel and allows managing maintenance mode.
- `bypass maintenance mode` allows a user to browse the frontend while maintenance mode is active.

Super users can always access both.

When upgrading, grant `bypass maintenance mode` to any non-super roles that previously relied on `access cp` to browse during maintenance.

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=statamic-maintenance-mode-config
```

Refer to the published configuration file (`config/statamic/maintenance-mode.php`) for available options.

Customizing the Error Page
--------------------------

[](#customizing-the-error-page)

When no Statamic entry is selected, visitors see Laravel's default 503 error page.

To customize it, publish Laravel's error templates:

```
php artisan vendor:publish --tag=laravel-errors
```

Then edit `resources/views/errors/503.blade.php`.

Static Caching
--------------

[](#static-caching)

When using Statamic's [full measure static caching](https://statamic.dev/static-caching#full-measure), your web server serves pre-rendered HTML files directly, bypassing PHP entirely. This means Laravel's maintenance mode check won't run for cached pages.

To ensure maintenance mode works correctly, modify your server config to skip static file serving when the `down` file exists. This forces requests through PHP where Laravel can handle maintenance mode properly.

**Nginx:**

```
set $try_static_files "";

if (-f $document_root/../storage/framework/down) {
    set $try_static_files "skip";
}

if (-f "${document_root}/static${uri}_${query_string}.html") {
    set $try_static_files "${try_static_files}+exists";
}

if ($try_static_files = "+exists") {
    rewrite ^(.*)$ /static$1_$query_string.html last;
}
```

**Apache (.htaccess):**

```
RewriteCond %{DOCUMENT_ROOT}/../storage/framework/down !-f
RewriteCond %{DOCUMENT_ROOT}/static%{REQUEST_URI}_%{QUERY_STRING}\.html -s
RewriteRule .* static%{REQUEST_URI}_%{QUERY_STRING}.html [L,T=text/html]
```

Half measure static caching works without server configuration since requests still pass through PHP.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.9% 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 ~40 days

Total

5

Last Release

64d ago

Major Versions

v0.2.0 → v6.x-dev2026-03-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/81a231c7730414820ac67caf7b30bea0de0d6af3775ec941a07ee5dc697f442a?d=identicon)[mail@jonaslist.de](/maintainers/mail@jonaslist.de)

---

Top Contributors

[![el-schneider](https://avatars.githubusercontent.com/u/26460248?v=4)](https://github.com/el-schneider "el-schneider (39 commits)")[![ito-ito-ito-ito](https://avatars.githubusercontent.com/u/260886217?v=4)](https://github.com/ito-ito-ito-ito "ito-ito-ito-ito (2 commits)")[![webmalocher](https://avatars.githubusercontent.com/u/44087820?v=4)](https://github.com/webmalocher "webmalocher (1 commits)")

---

Tags

cmslaravelmaintenance-modephpstatamicstatamic-addonstatamic-v5statamic-v6maintenancestatamic

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/el-schneider-statamic-maintenance-mode/health.svg)

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

###  Alternatives

[statamic/seo-pro

71548.3k](/packages/statamic-seo-pro)[statamic/statamic

Statamic

832182.1k](/packages/statamic-statamic)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

137236.2k8](/packages/statamic-rad-pack-runway)[rias/statamic-redirect

29347.4k](/packages/rias-statamic-redirect)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3622.8k](/packages/duncanmcclean-statamic-cargo)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23122.2k16](/packages/marcorieser-statamic-livewire)

PHPackages © 2026

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