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

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

chubbyphp/chubbyphp-cors
========================

A minimal CORS middleware for PSR 15.

1.7.1(4mo ago)420.3k↓17.7%2MITPHPPHP ^8.3CI passing

Since Jul 14Pushed 3mo ago2 watchersCompare

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

READMEChangelogDependencies (12)Versions (14)Used By (0)

chubbyphp-cors
==============

[](#chubbyphp-cors)

[![CI](https://github.com/chubbyphp/chubbyphp-cors/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-cors/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/e3254ad6a6d3f2ea0d5a12ee38aca552a2d96d9a630f64546cc595ada7eb16d9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d636f72732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-cors?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/0e6eb2c779b440600f989766943ea246006ccdeadf3c9a196528d3e65e189446/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d636f72732532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-cors/master)[![Latest Stable Version](https://camo.githubusercontent.com/8cf3b55ca7e2d91d9509f0a7e378afe92fcd9aca407379da6ff46ef0a1c98428/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d636f72732f76)](https://packagist.org/packages/chubbyphp/chubbyphp-cors)[![Total Downloads](https://camo.githubusercontent.com/10437a6078a399e2517be40e422ed91c92ad597304a921e8274f7b777ca35ac0/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d636f72732f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-cors)[![Monthly Downloads](https://camo.githubusercontent.com/1103f01bb83487bb211ef263e366e99979b0784775118f90869071c1d8ab22fe/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d636f72732f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-cors)

[![bugs](https://camo.githubusercontent.com/1da1d2914ec52e1fb6eb972bf04926d813dfaa31943f7b1c06daf8f9b72cf075/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![code_smells](https://camo.githubusercontent.com/5bb0c578445cede146ec25e3737c6d8349072f226d61d3ff8d167fb151c74c3a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![coverage](https://camo.githubusercontent.com/c7a9c246acb30890b65a9e8a7d593962900fc037da84dcfb7abd7dd09f5537c9/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![duplicated_lines_density](https://camo.githubusercontent.com/1406dabff8cd202d9851398f31a8cb8abb309642467188430ddcd25e2b02e26d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![ncloc](https://camo.githubusercontent.com/9fc9e60cd6bd7f1c04eb37fcf5b4e765ad217a27db10321f362ead74082c5a57/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![sqale_rating](https://camo.githubusercontent.com/b64f2507644ee72894b93ec48627ec07982586b4f964698a25d23463d3699aa8/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![alert_status](https://camo.githubusercontent.com/25fe8c65fc7a94e8ed5655f142da9b6c6ae03a9193687d0d3e32ae3e547d5878/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![reliability_rating](https://camo.githubusercontent.com/acf5a7100792efe6f401c9995ed8cbc60a2790e7a74fbc07d0677d365704b06d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![security_rating](https://camo.githubusercontent.com/89fc124ee72beba161d7ca8894dd3955696592aa9ff3d4171f245be90347f3f0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![sqale_index](https://camo.githubusercontent.com/62f74e2a8ec6f13363f3fc94c7c1d1fc9892af67ea7616f37e5ba6e3ff100eca/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)[![vulnerabilities](https://camo.githubusercontent.com/0f9ff7b783f660ad03c82e76a69b0e4bdfeec313231a892967e8c89a78f62037/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d636f7273266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-cors)

Description
-----------

[](#description)

A minimal CORS middleware for PSR 15.

Requirements
------------

[](#requirements)

- php: ^8.3
- [psr/http-factory](https://packagist.org/packages/psr/http-factory): ^1.1
- [psr/http-message](https://packagist.org/packages/psr/http-message): ^1.1|^2.0
- [psr/http-server-middleware](https://packagist.org/packages/psr/http-server-middleware): ^1.0.2

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

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-cors](https://packagist.org/packages/chubbyphp/chubbyphp-cors).

```
composer require chubbyphp/chubbyphp-cors "^1.7.1"
```

Usage
-----

[](#usage)

- [Chubbyphp Framework](doc/ChubbyphpFramework.md)
- [Mezzio](doc/Mezzio.md)
- [Slim 3](doc/Slim3.md)
- [Slim 4](doc/Slim4.md)

Copyright
---------

[](#copyright)

2026 Dominik Zogg

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance79

Regular maintenance activity

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 98.8% 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 ~198 days

Recently: every ~353 days

Total

13

Last Release

122d ago

PHP version history (7 changes)1.0-beta1PHP ^7.2

1.2.1PHP ^7.2|^8.0

1.3.0PHP ^7.4|^8.0

1.4.0PHP ^8.0

1.5.0PHP ^8.1

1.6.0PHP ^8.2

1.7.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/55048de83ca5e5d8c67164a19c78edcaad413b0c1a4ae10d92edf8d77bedd90f?d=identicon)[dominikzogg](/maintainers/dominikzogg)

---

Top Contributors

[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (82 commits)")[![mavimo](https://avatars.githubusercontent.com/u/43941?v=4)](https://github.com/mavimo "mavimo (1 commits)")

---

Tags

chubbyphp-frameworkcorsmezziomiddlewarepsr-15psr-7slim-frameworkzend-expressivepsr-7middlewarecorsslimpsr-15chubbyphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mezzio/mezzio

PSR-15 Middleware Microframework

3883.6M97](/packages/mezzio-mezzio)[tuupola/cors-middleware

PSR-7 and PSR-15 CORS middleware

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

PSR-7 middleware foundation for building and dispatching middleware pipelines

586.6M81](/packages/laminas-laminas-stratigility)[middlewares/utils

Common utils for PSR-15 middleware packages

503.4M92](/packages/middlewares-utils)[mezzio/mezzio-authentication-oauth2

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

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[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)
