PHPackages                             quillphp/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. [API Development](/categories/api)
4. /
5. quillphp/cors

ActiveLibrary[API Development](/categories/api)

quillphp/cors
=============

Quill PHP cors middleware

00PHPCI passing

Since Apr 6Pushed 2d agoCompare

[ Source](https://github.com/quillphp/quill-cors)[ Packagist](https://packagist.org/packages/quillphp/cors)[ RSS](/packages/quillphp-cors/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Quill CORS Middleware
=====================

[](#quill-cors-middleware)

Cross-Origin Resource Sharing (CORS) middleware for the [Quill PHP Framework](https://quillphp.com).

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

[](#installation)

```
composer require quillphp/cors
```

Usage
-----

[](#usage)

```
use Quill\Cors\Cors;

$app->use(Cors::new([
    'allow_origins' => ['https://example.com'],
    'allow_methods' => ['GET', 'POST', 'DELETE'],
    'allow_headers' => ['Authorization', 'Content-Type'],
]));
```

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

[](#configuration)

OptionDefaultDescription`allow\_methods``\['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'\]`Allowed HTTP methods.`allow\_headers``\['Origin', 'Content-Type', 'Accept', 'Authorization', 'X-Requested-With'\]`Allowed HTTP headers.`expose\_headers``\[\]`Additional headers to expose to the client.`allow\_credentials``false`Whether to support authenticated requests.`max\_age``3600`How long the pre-flight request can be cached.License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4742b2ad737c14793d6b0a418e6da90b446153a4d7ba120a1f3c07e2a2951d28?d=identicon)[quillphp](/maintainers/quillphp)

---

Top Contributors

[![fr3on](https://avatars.githubusercontent.com/u/26393383?v=4)](https://github.com/fr3on "fr3on (1 commits)")

---

Tags

apicorsmiddlewarephp

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M470](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M186](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M33](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M94](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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