PHPackages                             phapi/middleware-cors - 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. phapi/middleware-cors

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

phapi/middleware-cors
=====================

Middleware handling HTTP access control (CORS) requests

1.0.1(10y ago)01.5kMITPHP &gt;=5.6.0

Since Jul 14Compare

[ Source](https://github.com/phapi/middleware-cors)[ Packagist](https://packagist.org/packages/phapi/middleware-cors)[ Docs](http://phapi.github.io)[ RSS](/packages/phapi-middleware-cors/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (5)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/phapi/middleware-cors).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3830d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.0

1.0.1PHP &gt;=5.6.0

### Community

Maintainers

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

---

Tags

middlewarecorsaccessphapicontrolHTTP access control

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phapi-middleware-cors/health.svg)

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

###  Alternatives

[tuupola/cors-middleware

PSR-7 and PSR-15 CORS middleware

1331.8M24](/packages/tuupola-cors-middleware)[middlewares/access-log

Middleware to generate access logs

20121.2k2](/packages/middlewares-access-log)[middlewares/cors

Middleware to implement Cross-Origin Resource Sharing (CORS)

1372.2k3](/packages/middlewares-cors)[bairwell/middleware-cors

A PSR-7 middleware layer for providing CORS (Cross Origin Request Security) headers and security provisions. Instead of just allowing invalid CORs requests to come through, this middleware actively blocks them after validating.

1920.9k1](/packages/bairwell-middleware-cors)

PHPackages © 2026

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