PHPackages                             phpnexus/cors-psr7 - 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. phpnexus/cors-psr7

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

phpnexus/cors-psr7
==================

Provides a lightweight CORS middleware for PSR-7 and PSR-15 compatible frameworks.

0.3.2(3mo ago)1483Apache-2.0PHPPHP ^8.1CI passing

Since Oct 21Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/phpnexus/cors-psr7)[ Packagist](https://packagist.org/packages/phpnexus/cors-psr7)[ RSS](/packages/phpnexus-cors-psr7/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (11)Used By (0)

CORS-PSR7
=========

[](#cors-psr7)

[![Latest Version](https://camo.githubusercontent.com/aa9c0047cefd6c96a40ad3af58ff4d015870ad5d2dc03b741c3f9456accb4134/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068706e657875732f636f72732d707372372e7376673f7374796c653d666c61742d737175617265)](https://github.com/phpnexus/cors-psr7/releases)[![Software License](https://camo.githubusercontent.com/effa8235d7eba5e273e8712a2c110b76565138e21b71cdd10ea6082613f07943/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4170616368655f322e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Provides CORS middleware for PSR-7 and PSR-15 compatible frameworks.

Installation
------------

[](#installation)

It's recommended that you use [Composer](https://getcomposer.org/) to install CORS-PSR7:

```
$ composer require phpnexus/cors-psr7
```

This package requires PHP 8.1 or newer.

Usage
-----

[](#usage)

TODO

Configuration
-------------

[](#configuration)

Please see [`phpnexus\cors`](https://github.com/phpnexus/cors) documentation for configuration options.

Versioning
----------

[](#versioning)

The packages adheres to the [SemVer](http://semver.org/) specification, and there will be full backward compatibility between minor versions.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

This package is released under the Apache 2.0 License. See the bundled [LICENSE](https://github.com/phpnexus/cors/blob/master/LICENSE) file for details.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance82

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.4% 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 ~242 days

Recently: every ~272 days

Total

9

Last Release

96d ago

PHP version history (3 changes)0.1.0PHP ^7.1

0.2.2PHP ^7.4|^8.1

0.3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fd086657d547f6bf3353c72fbfc7be23b714cb00dbefde6f79a45a4b146ea61?d=identicon)[markinjapan](/maintainers/markinjapan)

---

Top Contributors

[![markinjapan](https://avatars.githubusercontent.com/u/5118865?v=4)](https://github.com/markinjapan "markinjapan (62 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

psr-7middlewarecorspsr7psr-15psr15

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpnexus-cors-psr7/health.svg)

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

###  Alternatives

[league/route

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6633.1M115](/packages/league-route)[tuupola/cors-middleware

PSR-7 and PSR-15 CORS middleware

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

A PSR-15 server request handler.

3302.1M86](/packages/relay-relay)[prooph/http-middleware

http middleware for prooph components

1145.0k](/packages/prooph-http-middleware)[wellrested/wellrested

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)

PHPackages © 2026

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