PHPackages                             leuverink/lockdown - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. leuverink/lockdown

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

leuverink/lockdown
==================

Easily lock sections of your Laravel app with Basic Access Authentication using convenient route middleware &amp; configurable guards

1.0.0-alpha.3(6y ago)25[3 PRs](https://github.com/gwleuverink/lockdown/pulls)MITPHPPHP ^7.1.3

Since May 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gwleuverink/lockdown)[ Packagist](https://packagist.org/packages/leuverink/lockdown)[ RSS](/packages/leuverink-lockdown/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (7)Versions (11)Used By (0)

Lockdown
========

[](#lockdown)

 Easily lock sections of your Laravel app with Basic Access Authentication using convenient route middleware &amp; configurable guards

 [![Build Status](https://camo.githubusercontent.com/45a4e42dc59feea16615eb31dbae44ac3d3f5e38dcf5656cfbb2069bddf9fb9f/68747470733a2f2f7472617669732d63692e6f72672f67776c6575766572696e6b2f6c6f636b646f776e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gwleuverink/lockdown) [![Coverage Status](https://camo.githubusercontent.com/d4a0fd0ac49b71d9a9121502c835cf0a7f01cf40582e71fab3f174f76deb9553/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67776c6575766572696e6b2f6c6f636b646f776e2f62616467652e737667)](https://coveralls.io/github/gwleuverink/lockdown) [![Latest Stable Version](https://camo.githubusercontent.com/2adf90350a0404cbcd401531ef1914b7e149f803ffb6c2194d26c78b5d84056b/68747470733a2f2f706f7365722e707567782e6f72672f6c6575766572696e6b2f6c6f636b646f776e2f762f737461626c652e737667)](https://packagist.org/packages/leuverink/lockdown) [![Latest Unstable Version](https://camo.githubusercontent.com/0a47a9455a022eb21f301381c332170a25d1c62e25b2e3a3f4db98318050f60e/68747470733a2f2f706f7365722e707567782e6f72672f6c6575766572696e6b2f6c6f636b646f776e2f762f756e737461626c652e737667)](https://packagist.org/packages/leuverink/lockdown) [![License](https://camo.githubusercontent.com/6c4774aba23e2f0172dc03c3893f10b0d20cf71739b791d8fe3294cc54edb4b0/68747470733a2f2f706f7365722e707567782e6f72672f6c6575766572696e6b2f6c6f636b646f776e2f6c6963656e73652e737667)](https://packagist.org/packages/leuverink/lockdown)

A note on security
------------------

[](#a-note-on-security)

Lockdown is meant to shield sections of your project from prying eyes, for example if you like to demo a feature that is not ready for production.

Basic Acces Auth is insecure by nature. If in production always make sure to have TLS configured so all credentials are encrypted. Even with that precaution I heavily discourage you use this package to protect valuable data. It is not meant to do that.

That said there are plenty of situations where a easily configurable Basic Access Auth middleware is exactly what you need. If you find yourself in one of those situations, read on!

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

[](#installation)

**Install the package**

`composer require leuverink/lockdown`

**Publish the config file**

`php artisan vendor:publish --tag="lockdown:config"`

Getting started
---------------

[](#getting-started)

For usage, check out [the documentation](https://gwleuverink.github.io/lockdown "Lockdown documentation").

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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 ~10 days

Total

3

Last Release

2550d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9531bf1fdbe178d3a5129b81e61b70be81359ebf10ce3f282705a8275b4bd31d?d=identicon)[gwleuverink](/maintainers/gwleuverink)

---

Top Contributors

[![gwleuverink](https://avatars.githubusercontent.com/u/17123491?v=4)](https://github.com/gwleuverink "gwleuverink (30 commits)")

---

Tags

basic-authcomposerlaravelmiddlewarephp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/leuverink-lockdown/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

71510.9M66](/packages/laravel-mcp)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[provydon/docs-generate

Automatic API documentation for your Laravel app — zero annotations, OpenAPI 3.0 JSON &amp; Swagger UI.

103.5k](/packages/provydon-docs-generate)

PHPackages © 2026

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