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 8y 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 5d 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 54% 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

3293d 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

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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