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.1(1y ago)0134MITPHPPHP ^8.2

Since Jan 22Pushed 1y 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 1mo ago

READMEChangelogDependencies (4)Versions (2)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

26

—

LowBetter than 43% of packages

Maintenance42

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

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

Unknown

Total

1

Last Release

472d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cbf7b15aa95b4f96a243793fdcb6365420dda7a873cef7424384ea815aa80bf?d=identicon)[SoipoServices](/maintainers/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

[danharrin/livewire-rate-limiting

Apply rate limiters to Laravel Livewire actions.

40423.1M27](/packages/danharrin-livewire-rate-limiting)[mateusjunges/laravel-kafka

A kafka driver for laravel

7163.1M17](/packages/mateusjunges-laravel-kafka)[illuminate/http

The Illuminate Http package.

11936.0M5.0k](/packages/illuminate-http)[ricorocks-digital-agency/soap

A SOAP client that provides a clean interface for handling requests and responses.

4281.8M5](/packages/ricorocks-digital-agency-soap)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[laravel-shift/curl-converter

A command line tool to convert curl requests to Laravel HTTP requests.

935.3k](/packages/laravel-shift-curl-converter)

PHPackages © 2026

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