PHPackages                             whirlwind-framework/middleware-oauth2 - 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. whirlwind-framework/middleware-oauth2

ActiveLibrary

whirlwind-framework/middleware-oauth2
=====================================

Whirlwind framework PSR-15 oauth2 middleware

v0.0.3(4y ago)21.1k2BSD-3-ClausePHPPHP ~7.4||&gt;=8.0

Since Feb 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/whirlwind-framework/middleware-oauth2)[ Packagist](https://packagist.org/packages/whirlwind-framework/middleware-oauth2)[ RSS](/packages/whirlwind-framework-middleware-oauth2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

Oauth2 middleware of Whirlwind framework
========================================

[](#oauth2-middleware-of-whirlwind-framework)

#### Validates Bearer token in:

[](#validates-bearer-token-in)

- "Authorization" header (Bearer prefix required)
- "access\_token" query param (Bearer prefix must be omitted)
- "access\_token" field in body (Bearer prefix must be omitted)

Example of usage:

```
$middleware = $container->get(AuthMiddleware::class);

$app->map('GET', '/api/v1/messages', \App\Api\Action\Message\v1\MessageIndexAction::class)
    ->middleware($middleware->withRequiredScopes(['communication-messages.index']));

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~38 days

Total

3

Last Release

1477d ago

### Community

Maintainers

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

---

Top Contributors

[![geckoboom](https://avatars.githubusercontent.com/u/41550729?v=4)](https://github.com/geckoboom "geckoboom (5 commits)")[![Indigerd](https://avatars.githubusercontent.com/u/2143512?v=4)](https://github.com/Indigerd "Indigerd (5 commits)")

---

Tags

middlewarepsr-15oauth2

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/whirlwind-framework-middleware-oauth2/health.svg)

```
[![Health](https://phpackages.com/badges/whirlwind-framework-middleware-oauth2/health.svg)](https://phpackages.com/packages/whirlwind-framework-middleware-oauth2)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[psr/http-server-middleware

Common interface for HTTP server-side middleware

18291.2M1.5k](/packages/psr-http-server-middleware)[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[relay/relay

A PSR-15 server request handler.

3302.1M86](/packages/relay-relay)[cakephp/authentication

Authentication plugin for CakePHP

1153.6M67](/packages/cakephp-authentication)[tuupola/cors-middleware

PSR-7 and PSR-15 CORS middleware

1331.8M24](/packages/tuupola-cors-middleware)

PHPackages © 2026

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