PHPackages                             vdhoangson/laravel-basic-auth - 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. vdhoangson/laravel-basic-auth

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

vdhoangson/laravel-basic-auth
=============================

The Laravel Basic Auth.

v1.1(11mo ago)134MITPHPPHP ^8.1

Since May 27Pushed 11mo agoCompare

[ Source](https://github.com/vdhoangson/laravel-basic-auth)[ Packagist](https://packagist.org/packages/vdhoangson/laravel-basic-auth)[ GitHub Sponsors](https://github.com/vdhoangson)[ RSS](/packages/vdhoangson-laravel-basic-auth/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Basic Auth
==================

[](#laravel-basic-auth)

[![GitHub tag (latest by date)](https://camo.githubusercontent.com/db78c8b736a7d0a1660c8009ebf15a331d4b42c777ebd082a8d4e9942bcf50e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672d646174652f7664686f616e67736f6e2f6c61726176656c2d62617369632d617574683f6c6162656c3d56657273696f6e)](https://camo.githubusercontent.com/db78c8b736a7d0a1660c8009ebf15a331d4b42c777ebd082a8d4e9942bcf50e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672d646174652f7664686f616e67736f6e2f6c61726176656c2d62617369632d617574683f6c6162656c3d56657273696f6e)[![GitHub](https://camo.githubusercontent.com/bec60e2ee83e841253de3b2abb00d8312e1b9cfe682232b5ab8414302d17dd63/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7664686f616e67736f6e2f6c61726176656c2d62617369632d617574683f6c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/bec60e2ee83e841253de3b2abb00d8312e1b9cfe682232b5ab8414302d17dd63/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f7664686f616e67736f6e2f6c61726176656c2d62617369632d617574683f6c6162656c3d4c6963656e7365)[![Packagist](https://camo.githubusercontent.com/b8a5438a7271b442f16c9a87842099e614c2b33f135d09e06a650b8446b9930f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7664686f616e67736f6e2f6c61726176656c2d62617369632d617574683f6c6162656c3d446f776e6c6f616473)](https://camo.githubusercontent.com/b8a5438a7271b442f16c9a87842099e614c2b33f135d09e06a650b8446b9930f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7664686f616e67736f6e2f6c61726176656c2d62617369632d617574683f6c6162656c3d446f776e6c6f616473)

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

[](#installation)

You can install this package by composer:

```
composer require vdhoangson/laravel-basic-auth

```

### Implementation

[](#implementation)

Use this in routes/web.php

```
Route::middleware(['basic-auth'])->group(function () {
    //All the routes are placed in here
    Route::get('/home', 'DashboardController@dashboard');
});
```

OR

```
Route::get('/home', 'DashboardController@dashboard')->middleware('basic-auth');
```

Configures
==========

[](#configures)

```
BASIC_AUTH_USERNAME=
BASIC_AUTH_PASSWORD=
BASIC_AUTH_REALM=

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance51

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

347d ago

### Community

Maintainers

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

---

Top Contributors

[![vdhoangson](https://avatars.githubusercontent.com/u/4547214?v=4)](https://github.com/vdhoangson "vdhoangson (6 commits)")

---

Tags

laravellaravel-packagelaravelAuthenticationbasic authvdhoangson

### Embed Badge

![Health badge](/badges/vdhoangson-laravel-basic-auth/health.svg)

```
[![Health](https://phpackages.com/badges/vdhoangson-laravel-basic-auth/health.svg)](https://phpackages.com/packages/vdhoangson-laravel-basic-auth)
```

###  Alternatives

[pragmarx/google2fa-laravel

A One Time Password Authentication package, compatible with Google Authenticator.

1.0k15.5M63](/packages/pragmarx-google2fa-laravel)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6712.1k2](/packages/hasinhayder-tyro)[maicol07/laravel-oidc-client

OpenID Connect Client for Laravel

251.1k](/packages/maicol07-laravel-oidc-client)

PHPackages © 2026

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