PHPackages                             soiposervices/httpauth - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. soiposervices/httpauth

ActiveLibrary[HTTP &amp; Networking](/categories/http)

soiposervices/httpauth
======================

A simple package to enable http auth, useful especially for stage and dev environments

0.0.3(1mo ago)0142MITPHPPHP ^8.2CI passing

Since Jan 22Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/SoipoServices/httpauth)[ Packagist](https://packagist.org/packages/soiposervices/httpauth)[ Docs](https://github.com/soiposervices/httpauth)[ RSS](/packages/soiposervices-httpauth/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (4)Used By (0)

Very short description of the package
=====================================

[](#very-short-description-of-the-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/85fc3720802eee90d40b9934effc309ae5b14f79ac1796bf7b6a3c7fc3a98d9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f69706f73657276696365732f68747470617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soiposervices/httpauth)[![Total Downloads](https://camo.githubusercontent.com/246d43cc85bbd7dd6a4823984e294f206374bee5cf46624149d137de214c0076/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f69706f73657276696365732f68747470617574682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soiposervices/httpauth)[![GitHub Actions](https://github.com/soiposervices/httpauth/actions/workflows/main.yml/badge.svg)](https://github.com/soiposervices/httpauth/actions/workflows/main.yml/badge.svg)

This laravel package provides a simple http auth middleware. It can be enable for specific environments and it allows white listed ip to skip the auth check.

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

[](#installation)

You can install the package via composer:

```
composer require soiposervices/httpauth
```

Usage
-----

[](#usage)

Make sure

To use this laravel package simply add the HttpAuth middleware to the routes your want to enable the authentication.

You can set the admin and password, using the env variables *HTTP\_AUTH\_USER* and *HTTP\_AUTH\_PASS*

To whitelist some ip addresses set a comma delimited string in the env variable *HTTP\_AUTH\_WHITELIST*

To enable for specific enviroments set the env vairable *HTTP\_AUTH\_ENABLED\_ENV* eg: "prod,stage"

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Luigi Laezza](https://github.com/soiposervices)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance93

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

3

Last Release

35d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16804994?v=4)[SoipoServices](/maintainers/SoipoServices)[@SoipoServices](https://github.com/SoipoServices)

---

Tags

soiposerviceshttpauth

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/soiposervices-httpauth/health.svg)

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

###  Alternatives

[mateusjunges/laravel-kafka

A kafka driver for laravel

7253.6M21](/packages/mateusjunges-laravel-kafka)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)

PHPackages © 2026

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