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(2w ago)1165↑62.5%2MITPHPPHP ^8.2CI passing

Since Jan 3Pushed 1mo 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 today

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

43

—

FairBetter than 89% of packages

Maintenance93

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

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

19d 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 (34 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)")

---

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

68516.6k](/packages/statamic-seo-pro)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23111.5k15](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

15133.0k](/packages/withcandour-aardvark-seo)[aerni/livewire-forms

A Statamic forms framework powered by Laravel Livewire

2915.1k](/packages/aerni-livewire-forms)[mitydigital/feedamic

A fully-featured RSS and Atom feed generator for Statamic.

1075.6k](/packages/mitydigital-feedamic)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20121.3k](/packages/visuellverstehen-statamic-classify)

PHPackages © 2026

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