PHPackages                             rakko-inc/laravel-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. rakko-inc/laravel-maintenance-mode

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

rakko-inc/laravel-maintenance-mode
==================================

1.0.0(1y ago)3543[1 PRs](https://github.com/rakkofield/laravel-maintenance-mode/pulls)MITPHPPHP ^7.2.5 || ~8.0

Since Feb 22Pushed 2w ago2 watchersCompare

[ Source](https://github.com/rakkofield/laravel-maintenance-mode)[ Packagist](https://packagist.org/packages/rakko-inc/laravel-maintenance-mode)[ RSS](/packages/rakko-inc-laravel-maintenance-mode/feed)WikiDiscussions 1.x Synced 2d ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

rakko-inc/laravel-maintenance-mode
==================================

[](#rakko-inclaravel-maintenance-mode)

This package provides the advanced maintenance mode features introduced in Laravel 9 to Laravel 6.

Demo
----

[](#demo)

This demo provides basic instructions for starting and managing the server. For more detailed command options and configuration settings, please refer to [the Laravel official documentation](https://laravel.com/docs/11.x/configuration#maintenance-mode).

### Start server with Docker

[](#start-server-with-docker)

In this demo, the Redis service and the following two types of application services will be started using [Docker Compose](https://docs.docker.com/compose/).

1. `cache-based` is a service for multiple server applications using cache based maintenance mode. 2. Binds to ports `8000` and `8001`.
2. `file-bases` is a service for single server application using file based maintenance mode. 3. Binds to port `8002`.

The following is an example of a command using the `cache-based` service. If you are running the demo using the `file-based` service, please replace the commands as appropriate.

```
cd demo
docker compose up -d cache-based
```

### Activate maintenance mode

[](#activate-maintenance-mode)

```
docker compose exec cache-based php artisan down
```

Check server status.

```
$ curl -I localhost:8000
HTTP/1.0 503 Service Unavailable
Host: localhost:8000
Date: Sat, 16 Nov 2024 15:49:08 GMT
Connection: close
X-Powered-By: PHP/7.2.34
Cache-Control: no-cache, private
date: Sat, 16 Nov 2024 15:49:08 GMT
Content-type: text/html; charset=UTF-8

```

```
$ curl -I localhost:8001
HTTP/1.0 503 Service Unavailable
Host: localhost:8001
Date: Sat, 16 Nov 2024 15:50:16 GMT
Connection: close
X-Powered-By: PHP/7.2.34
Cache-Control: no-cache, private
date: Sat, 16 Nov 2024 15:50:16 GMT
Content-type: text/html; charset=UTF-8

```

### Deactivate maintenance mode

[](#deactivate-maintenance-mode)

```
docker compose exec cache-based php artisan up
```

Check server status.

```
$ curl -I localhost:8000
HTTP/1.1 200 OK
Host: localhost:8000
Date: Sat, 16 Nov 2024 15:51:39 GMT
Connection: close
X-Powered-By: PHP/7.2.34
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, private
Date: Sat, 16 Nov 2024 15:51:39 GMT
Set-Cookie: XSRF-TOKEN=eyJpdiI6IjFqT1ZvS2l3NmZ1OVY3VEM3a1BEWHc9PSIsInZhbHVlIjoiQWZrUDVlQ3ZKUmNEZ1F0Qmg0MHpNWm1YcmZrbEZVbUhxdCtyV1wvcWpKTkVWQUZ2NUVYXC9DSVNrOW1kWGVZbzVIdFZYU1FBelJDd3RSclQybk9uY1pmeStjS2FhWXo0U2ZjVXdsVTFwS1l3TFVoS0treGRNVlg1UFlJUWlXUEdYbiIsIm1hYyI6IjA5MGIwOTVhMDA4MjQ4MGM3Y2JmYTVkNTM1YzNhYmYwNTAyMGRkZWNmZThjNDYzNWNmNTEwNzg3ZjYzMzQ1NTAifQ%3D%3D; expires=Sat, 16-Nov-2024 17:51:39 GMT; Max-Age=7200; path=/
Set-Cookie: laravel_session=eyJpdiI6InA2cnZhS0lsRXlkOWFteEJHdkwzVEE9PSIsInZhbHVlIjoiZHkzbHpyNmhvTXptc3F6KzZ3dHN4Qkhqd0FFMWVDXC9aT25JbzdXYXVLaWpsOXlKeTFBMGYyTjdrem11TUU0bjZ0NzVwcVJ2MU1VaHBRVXdSYTVTXC8rRG04OTkxdVBmbjZIelpmNXcwM2p3S1U1TnZxRFZPK0NsVjFQR3czOFM4VyIsIm1hYyI6ImRkNTg3NWRjN2U2YTk2MTU5YzZhNjRmZDlkZjk1MDYwOGVjM2I4NWQyMWE4ZTMxNDEzNzkxZDMwM2U0NzEzYzMifQ%3D%3D; expires=Sat, 16-Nov-2024 17:51:39 GMT; Max-Age=7200; path=/; httponly

```

```
$ curl -I localhost:8001
HTTP/1.1 200 OK
Host: localhost:8001
Date: Sat, 16 Nov 2024 15:52:14 GMT
Connection: close
X-Powered-By: PHP/7.2.34
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache, private
Date: Sat, 16 Nov 2024 15:52:14 GMT
Set-Cookie: XSRF-TOKEN=eyJpdiI6InhcL2U1bXFCY09jeXpIcDFnY0JrQlpBPT0iLCJ2YWx1ZSI6InkyWnYwaHc1WURvYzR6Sk5XK2pValRPOXJVNTlRQlVCMmZWSXZOMFpoVVhmTEVKYk5OWVBKWEthMlJiQ0ZjbzQ0OGV0OGZ3NXdETlZ3aVZLMHFvcFhXZ0xRd3FvYW03b0hvc1U4cWJZTXl5NWtDR3JINlZaTytMQVwvbkFwVUpvSSIsIm1hYyI6ImRiNWEyNzY1ZmExMTg3MDI1YTFkZGQ0YTVhNjc1YTIxN2JhNTU1MTE2MTJmZDIxOGIzZjg1NzRiZDg1NTE4MWUifQ%3D%3D; expires=Sat, 16-Nov-2024 17:52:14 GMT; Max-Age=7200; path=/
Set-Cookie: laravel_session=eyJpdiI6IjZQdU5hTjVocVh1T3NcL1ZiN3pPN05RPT0iLCJ2YWx1ZSI6IkVnTjJmK3RIVGhVNndCXC9aSFl5REZJdERUbGZRT1R3anNJNk9iUURxK1VJazNXcklkT3Q0QklvS0RpVlEzNFFDSHk0cnptMTEyY2pcL2tpajIrYjhBNlZHOXlxRnBJYm1JVyt0WXpOMmNkU252UFBxeEVidkEwSmFRcGNQaTFJUGoiLCJtYWMiOiIwZjgzNDFiOTkzYjYxODNmOGFhZTQzZjQ2N2UyOTMzZWNlYzZkNTY2MzdkMGI1ZGI4MDFiZjM0MDBmOTY3YmFjIn0%3D; expires=Sat, 16-Nov-2024 17:52:14 GMT; Max-Age=7200; path=/; httponly

```

### Cleanup

[](#cleanup)

```
docker compose down
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance72

Regular maintenance activity

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.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 ~0 days

Total

2

Last Release

485d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/194480335?v=4)[Rakko, Inc.](/maintainers/rakko-inc)[@rakko-inc](https://github.com/rakko-inc)

---

Top Contributors

[![NaokiTsuchiya](https://avatars.githubusercontent.com/u/17171732?v=4)](https://github.com/NaokiTsuchiya "NaokiTsuchiya (35 commits)")[![shimada-ryota](https://avatars.githubusercontent.com/u/91706864?v=4)](https://github.com/shimada-ryota "shimada-ryota (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rakko-inc-laravel-maintenance-mode/health.svg)

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

###  Alternatives

[illuminate/session

The Illuminate Session package.

9939.3M850](/packages/illuminate-session)[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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