PHPackages                             tecbeast/basic-auth-with-env - 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. tecbeast/basic-auth-with-env

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

tecbeast/basic-auth-with-env
============================

A middleware for Laravel 5.1+ where you can use basic auth with any webserver. Dependend only one config file.

1.0.1(9y ago)01.1k1MITPHPPHP &gt;=5.5.9

Since May 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/tecbeast42/basic-auth-middleware)[ Packagist](https://packagist.org/packages/tecbeast/basic-auth-with-env)[ RSS](/packages/tecbeast-basic-auth-with-env/feed)WikiDiscussions master Synced 3w ago

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

BasicAuthWithEnv
================

[](#basicauthwithenv)

A middleware for Laravel 5.1+ where you can use basic auth with any webserver. Depending only on one config file.

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

[](#installation)

```
composer require tecbeast/basic-auth-with-env

```

Add the service provider to the providers array in config/app.php:

```
'providers' => [

    ...

    TecBeast\BasicAuthWithEnv\BasicAuthServiceProvider::class,

],

```

Add the middleware to the middleware array (for global, otherwise add to route or group (Laravel 5.2+)) in app/Http/Kernel.php:

```
protected $middleware = [
    ...
    \TecBeast\BasicAuthWithEnv\Middleware\BasicAuth::class,
];

```

Publish the config to your application:

```
php artisan vendor:publish --provider="TecBeast\BasicAuthWithEnv\BasicAuthServiceProvider"

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3340d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tecbeast-basic-auth-with-env/health.svg)

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

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[jeremy379/laravel-openid-connect

OpenID Connect support to the PHP League's OAuth2 Server. Compatible with Laravel Passport.

59437.0k8](/packages/jeremy379-laravel-openid-connect)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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