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

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

magentron/laravel-lockout
=========================

Put your Laravel application into read-only mode. (forked from rappasoft/lockout)

7.0.0(8mo ago)04.1k↓39.4%MITPHPPHP ^8.1

Since Feb 21Pushed 8mo agoCompare

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

READMEChangelogDependencies (3)Versions (11)Used By (0)

(forked from: [rappasoft/lockout](https://github.com/rappasoft/lockout) and [laravel-shift/lockout](https://github.com/laravel-shift/lockout))

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/1e472417f4f07e2561d422331a1726c4d92309a7c9398c56491741adfe2cddbe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6167656e74726f6e2f6c61726176656c2d6c6f636b6f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/magentron/laravel-lockout)[![Run Tests](https://github.com/magentron/laravel-lockout/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/magentron/laravel-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/e1507f00d6715765b9bfdb04b511e61df5439111c8b0ab31408db613ba5b827a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6167656e74726f6e2f6c61726176656c2d6c6f636b6f75742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/magentron/laravel-lockout/?branch=master)[![Quality Score](https://camo.githubusercontent.com/2a61443ac3d399f003a9bd0352cd238f69b9bef39a61cd51906a83ef6d1800ae/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d6167656e74726f6e2f6c61726176656c2d6c6f636b6f75742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/magentron/laravel-lockout)[![Total Downloads](https://camo.githubusercontent.com/aab3f638ed8588863eeafa01645dc296b21ae87d66543fc92ce5811714cacea8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6167656e74726f6e2f6c61726176656c2d6c6f636b6f75742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/magentron/laravel-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 magentron/laravel-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

45

—

FairBetter than 92% of packages

Maintenance61

Regular maintenance activity

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 88% 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 ~225 days

Recently: every ~324 days

Total

10

Last Release

245d ago

Major Versions

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 → 6.0.02025-01-28

6.0.1 → 7.0.02025-09-09

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

6.0.1PHP ^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/853900?v=4)[Jeroen D.](/maintainers/Magentron)[@Magentron](https://github.com/Magentron)

---

Top Contributors

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

---

Tags

laravelRead onlylockoutrappasoft

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/magentron-laravel-lockout/health.svg)](https://phpackages.com/packages/magentron-laravel-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)[rappasoft/lockout

Put your Laravel application into read-only mode.

96280.4k2](/packages/rappasoft-lockout)[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)

PHPackages © 2026

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