PHPackages                             oihana/php-middleware - 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. oihana/php-middleware

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

oihana/php-middleware
=====================

Composable PHP middleware helpers — security headers (HSTS, CSP, X-Frame-Options, Referrer-Policy, X-Content-Type-Options), CORS with preflight, CSRF, request-id, maintenance mode, rate limiting. PSR-7 compatible, zero magic strings.

0.7.0(1w ago)011↓100%MPL-2.0PHP &gt;=8.4

Since May 27Compare

[ Source](https://github.com/BcommeBois/oihana-php-middleware)[ Packagist](https://packagist.org/packages/oihana/php-middleware)[ Docs](https://github.com/BcommeBois/oihana-php-middleware)[ RSS](/packages/oihana-php-middleware/feed)WikiDiscussions Synced 1w ago

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

### README not available

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

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance98

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity45

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

Total

7

Last Release

9d ago

### Community

Maintainers

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

---

Tags

httppsr-7phpmiddlewaresecuritycorscsprate limitmaintenancecsrfrate limitinghstssecurity-headersrequest id

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oihana-php-middleware/health.svg)

```
[![Health](https://phpackages.com/badges/oihana-php-middleware/health.svg)](https://phpackages.com/packages/oihana-php-middleware)
```

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.7k](/packages/guzzlehttp-psr7)[mezzio/mezzio

PSR-15 Middleware Microframework

3893.8M118](/packages/mezzio-mezzio)[laminas/laminas-stratigility

PSR-7 middleware foundation for building and dispatching middleware pipelines

577.0M94](/packages/laminas-laminas-stratigility)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28545.4k3](/packages/mezzio-mezzio-authentication-oauth2)[middlewares/cors

Middleware to implement Cross-Origin Resource Sharing (CORS)

1374.2k3](/packages/middlewares-cors)[middlewares/csp

Middleware to add the Content-Security-Policy header to the response

1722.9k](/packages/middlewares-csp)

PHPackages © 2026

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