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

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

uuu9/cors
=========

给响应增加 CORS Header

v1.0.2(3y ago)0231PHP

Since Sep 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/haowenzou/uuu9-cors)[ Packagist](https://packagist.org/packages/uuu9/cors)[ RSS](/packages/uuu9-cors/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependenciesVersions (4)Used By (1)

uuu9-cors
=========

[](#uuu9-cors)

\#CORS Middleware for Lumen

\##Installation (Lumen 5.3)

`bootstrap.php`

add:

```
$app->register(Uuu9\Cors\Middleware\CorsServiceProvider::class);

```

and

```
$app->routeMiddleware([
    ......
    'cors' => Uuu9\Cors\Middleware\Cors::class,
]);

```

\##Attention Please !

This Middleware Will Handle All Options Request.

Only for `uuu9.cn` &amp; `uuu9.com`

\##Installation (Lumen 5.4)

```

$app->middleware([
    'cors'=>Uuu9\Cors\Middleware\Cors::class,

]);

$app->routeMiddleware([
    ......
    'cors' => Uuu9\Cors\Middleware\Cors::class,
]);

```

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

1420d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30683389?v=4)[haowenzou](/maintainers/haowenzou)[@haowenzou](https://github.com/haowenzou)

---

Top Contributors

[![haowenzou](https://avatars.githubusercontent.com/u/30683389?v=4)](https://github.com/haowenzou "haowenzou (5 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25026.8M85](/packages/php-http-cache-plugin)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

85997.3k131](/packages/httpsoft-http-message)[thesis/nats

Async (fiber based) client for Nats.

758.3k](/packages/thesis-nats)

PHPackages © 2026

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