PHPackages                             rik5/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. [Admin Panels](/categories/admin)
4. /
5. rik5/maintenance-mode

ActiveLibrary[Admin Panels](/categories/admin)

rik5/maintenance-mode
=====================

A Filament plugin to toggle maintenance mode from the admin panel.

v1.0.3(5mo ago)023MITPHPPHP ^8.1

Since Dec 9Pushed 5mo agoCompare

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

READMEChangelogDependencies (9)Versions (5)Used By (0)

Maintenance Mode
================

[](#maintenance-mode)

A Filament plugin to toggle maintenance mode from the admin panel.

This plugin is inspired by [Keysaw's Laravel Filament Maintenance](https://github.com/Keysaw/laravel-filament-maintenance).

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

[](#installation)

Install the package via Composer:

```
composer require rik5/maintenance-mode
```

Publish the config file:

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

Setup
-----

[](#setup)

Add the plugin to your Panel configuration:

```
use Rik5\MaintenanceMode\MaintenanceModePlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            MaintenanceModePlugin::make(),
        ]);
}
```

Usage
-----

[](#usage)

The plugin adds a menu item to the user menu in the Filament admin panel. Clicking it toggles maintenance mode on or off using Laravel's `artisan down` and `up` commands.

When enabling maintenance mode, a secret token is generated (or uses the configured one) to bypass the maintenance page.

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

[](#configuration)

- `secret`: Set a custom secret token or leave as null for auto-generated.
- `refresh`: Set refresh interval in seconds or false to disable.
- `permissions`: Restrict to users with specific permissions.
- `role`: Restrict to users with a specific role.
- `custom_view`: Use a custom maintenance page with animation (default: true).
- `block_api`: Block API endpoints during maintenance (default: false).

API Access During Maintenance
-----------------------------

[](#api-access-during-maintenance)

By default, API endpoints (`api/*`) are accessible even when maintenance mode is enabled. You can change this by setting `block_api` to `true` in the config file.

The package automatically replaces Laravel's default maintenance middleware to respect this configuration.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance72

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Every ~1 days

Total

4

Last Release

155d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laraveladminmaintenancefilament

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[awcodes/filament-quick-create

Plugin for Filament Admin that adds a dropdown menu to the header to quickly create new items.

246177.6k7](/packages/awcodes-filament-quick-create)[guava/filament-knowledge-base

A filament plugin that adds a knowledge base and help to your filament panel(s).

206120.5k1](/packages/guava-filament-knowledge-base)[ralphjsmit/laravel-filament-seo

A package to combine the power of Laravel SEO and Filament Admin.

15398.7k10](/packages/ralphjsmit-laravel-filament-seo)[caresome/filament-neobrutalism-theme

A neobrutalism theme for FilamentPHP admin panels

303.2k](/packages/caresome-filament-neobrutalism-theme)[andreia/filament-ui-switcher

Add a modal with options to switch between different UI layouts and styles (colors, fonts, font sizes).

233.8k](/packages/andreia-filament-ui-switcher)[craft-forge/filament-language-switcher

Zero-config language switcher for Filament admin panels. Automatically scans available translations, renders dropdown with country flags, persists selection via sessions.

1016.4k](/packages/craft-forge-filament-language-switcher)

PHPackages © 2026

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