PHPackages                             rappasoft/lockout - 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. rappasoft/lockout

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

rappasoft/lockout
=================

Put your Laravel application into read-only mode.

v6.0.0(5mo ago)96280.4k—8.1%6[1 PRs](https://github.com/rappasoft/lockout/pulls)2MITPHPPHP ^8.2CI passing

Since Feb 21Pushed 5mo ago3 watchersCompare

[ Source](https://github.com/rappasoft/lockout)[ Packagist](https://packagist.org/packages/rappasoft/lockout)[ Docs](https://github.com/rappasoft/lockout)[ GitHub Sponsors](https://github.com/rappasoft)[ RSS](/packages/rappasoft-lockout/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (3)Versions (10)Used By (2)

[![Package Logo](https://camo.githubusercontent.com/ce8a22b739a47aea636258a3edb11a17ca00555bd5ca75ab2a9479d855700f9e/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304c6f636b6f75742e706e673f7468656d653d6c69676874267061636b6167654e616d653d7261707061736f66742532466c6f636b6f7574267061747465726e3d686964656f7574267374796c653d7374796c655f31266465736372697074696f6e3d5075742b796f75722b4c61726176656c2b6170706c69636174696f6e2b696e746f2b726561642d6f6e6c792b6d6f6465266d643d3126666f6e7453697a653d313030707826696d616765733d6c6f636b2d636c6f736564)](https://camo.githubusercontent.com/ce8a22b739a47aea636258a3edb11a17ca00555bd5ca75ab2a9479d855700f9e/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304c6f636b6f75742e706e673f7468656d653d6c69676874267061636b6167654e616d653d7261707061736f66742532466c6f636b6f7574267061747465726e3d686964656f7574267374796c653d7374796c655f31266465736372697074696f6e3d5075742b796f75722b4c61726176656c2b6170706c69636174696f6e2b696e746f2b726561642d6f6e6c792b6d6f6465266d643d3126666f6e7453697a653d313030707826696d616765733d6c6f636b2d636c6f736564)

[![Latest Version on Packagist](https://camo.githubusercontent.com/af410f81121b09a35fdf4355cc40b2bc766771b5fd7d7d7812b4b493ea5f97cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261707061736f66742f6c6f636b6f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rappasoft/lockout)[![Run Tests](https://github.com/rappasoft/lockout/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/rappasoft/lockout/workflows/Run%20Tests/badge.svg?branch=master)[![StyleCI](https://camo.githubusercontent.com/c1546ad2746cf582e4543479e073600067c887a845a98d200b7bb32b7d1785e8/68747470733a2f2f7374796c6563692e696f2f7265706f732f3234323232323038382f736869656c643f7374796c653d706c6173746963)](https://github.styleci.io/repos/242222088)[![Code Coverage](https://camo.githubusercontent.com/08e65810094f2c47a8025ec497b3dc1f404642cfd4a8300648a8461d8ba5b3e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261707061736f66742f6c6f636b6f75742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/rappasoft/lockout/?branch=master)[![Quality Score](https://camo.githubusercontent.com/d26b32916546b3aa40dda55c60da6e82fc34b2339f1eccc68da7065325673453/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7261707061736f66742f6c6f636b6f75742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rappasoft/lockout)[![Total Downloads](https://camo.githubusercontent.com/04fd6e2627dcae95d8f8b5db1ed4e08ee270b735cfa43f5ba523fabf3d0eba7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261707061736f66742f6c6f636b6f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rappasoft/lockout)

### Enjoying this package? [Buy me a beer 🍺](https://www.buymeacoffee.com/rappasoft)

[](#enjoying-this-package-buy-me-a-beer-)

A simple .env flag that can place your application into read-only mode. By default only get requests are allowed. You can optionally allow authentication.

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

[](#installation)

You can install the package via composer:

```
composer require rappasoft/lockout
```

Documentation and Usage Instructions
------------------------------------

[](#documentation-and-usage-instructions)

See the [documentation](https://rappasoft.com/docs/lockout) for detailed installation and usage instructions.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Anthony Rappa](https://github.com/rappasoft)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance71

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 94% 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 ~302 days

Recently: every ~477 days

Total

8

Last Release

163d ago

Major Versions

v1.0 → v2.02020-03-18

v2.1 → v3.02020-09-14

v3.0.1 → v4.0.02022-02-19

v4.0.0 → v5.0.02023-04-12

v5.0.0 → v6.0.02025-12-06

PHP version history (7 changes)v1.0PHP ^7.1

v2.0PHP ^7.2.5

v3.0PHP ^7.3

v3.0.1PHP ^7.3|^8.0

v4.0.0PHP ^8.0

v5.0.0PHP ^8.1

v6.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/7391f7cc3ee64ecd12d948708b2c3d901d2baa20f34a16523b9d7f2e167abb5b?d=identicon)[rappa819](/maintainers/rappa819)

---

Top Contributors

[![rappasoft](https://avatars.githubusercontent.com/u/6026504?v=4)](https://github.com/rappasoft "rappasoft (78 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")

---

Tags

laravelRead onlylockoutrappasoft

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rappasoft-lockout/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[rappasoft/laravel-livewire-tables

A dynamic table component for Laravel Livewire

2.0k2.7M31](/packages/rappasoft-laravel-livewire-tables)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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