PHPackages                             rabianr/laravel-config-based-auth-basic - 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. rabianr/laravel-config-based-auth-basic

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

rabianr/laravel-config-based-auth-basic
=======================================

A config file based HTTP Basic Authentication Middleware for Laravel

1.1(4y ago)011MITPHPPHP &gt;=7.2

Since Oct 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/rabianr/laravel-config-based-auth-basic)[ Packagist](https://packagist.org/packages/rabianr/laravel-config-based-auth-basic)[ RSS](/packages/rabianr-laravel-config-based-auth-basic/feed)WikiDiscussions master Synced 1w ago

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

Config file based HTTP Basic Authentication Middleware for Laravel
==================================================================

[](#config-file-based-http-basic-authentication-middleware-for-laravel)

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

[](#installation)

```
composer require rabianr/laravel-config-based-auth-basic
```

Configuration
-------------

[](#configuration)

Publish the config to copy the file to your own config:

```
php artisan vendor:publish --tag="authbasic"
```

Usage
-----

[](#usage)

Set `auth.basic.cb` middleware to any route that require Basic Auth.

Define credentials in `config/authbasic.php` config file.

```
'credentials' => [
    [ 'user', 'password' ],
],
```

or in `.env` file

```
AUTHBASIC_USERS=user1:pass1,user2:pass2

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

Total

2

Last Release

1663d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3be6194d4bf5579740dae6a155b414106b2fe569db059d72dd9dbb2dbbee38c0?d=identicon)[rabianr](/maintainers/rabianr)

---

Top Contributors

[![rabianr](https://avatars.githubusercontent.com/u/76022206?v=4)](https://github.com/rabianr "rabianr (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[symfony/security-http

Symfony Security Component - HTTP Integration

1.7k164.3M234](/packages/symfony-security-http)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[simplesamlphp/simplesamlphp

A PHP implementation of a SAML 2.0 service provider and identity provider.

1.1k12.4M193](/packages/simplesamlphp-simplesamlphp)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)

PHPackages © 2026

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