PHPackages                             pflorek/php-basic-auth - 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. pflorek/php-basic-auth

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

pflorek/php-basic-auth
======================

Provides a simple way to get or set credentials (username, password) on a PSR-7 `RequestInterface`. Also it helps challenging an unauthorized client by adding the 'WWW-authenticate' header line with status code 401 to a PSR-7 `ResponseInterface`.

1.0.1(7y ago)375MITPHP &gt;=5.4

Since Nov 16Compare

[ Source](https://github.com/pflorek/php-basic-auth)[ Packagist](https://packagist.org/packages/pflorek/php-basic-auth)[ RSS](/packages/pflorek-php-basic-auth/feed)WikiDiscussions Synced 2mo ago

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

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/pflorek/php-basic-auth).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity57

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

Total

2

Last Release

2739d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13916107?v=4)[Patrick Florek](/maintainers/pflorek)[@pflorek](https://github.com/pflorek)

---

Tags

httpresponserequestpsr-7authorizationbasicauthrealmWWW-AuthentocateRFC 7617

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pflorek-php-basic-auth/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-server-handler

Common interface for HTTP server-side request handler

175101.3M921](/packages/psr-http-server-handler)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18091.2M1.5k](/packages/psr-http-server-middleware)[art4/requests-psr18-adapter

Use WordPress/Requests as a PSR-18 HTTP client

153.3k](/packages/art4-requests-psr18-adapter)[chillerlan/php-httpinterface

A PSR-7/17/18 http message/client implementation

1417.1k5](/packages/chillerlan-php-httpinterface)

PHPackages © 2026

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