PHPackages                             jkirkby91/lumenpsr7cors - 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. jkirkby91/lumenpsr7cors

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

jkirkby91/lumenpsr7cors
=======================

1.1.0(8y ago)01381PHP

Since Mar 20Pushed 8y agoCompare

[ Source](https://github.com/jkirkby91-2/Lumenpsr7cors)[ Packagist](https://packagist.org/packages/jkirkby91/lumenpsr7cors)[ RSS](/packages/jkirkby91-lumenpsr7cors/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (1)

Lumen-CORS
==========

[](#lumen-cors)

[Cross-origin resource sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) (CORS) Middleware for [Lumen micro-framework](http://lumen.laravel.com/).

[![Latest Stable Version](https://camo.githubusercontent.com/1cc3c3ad3bedb3a726449ee99a7883c16a67791a283bf48d0e7ad53d614c8549/68747470733a2f2f706f7365722e707567782e6f72672f70616c616e696b2f6c756d656e2d636f72732f762f737461626c652e737667)](https://packagist.org/packages/palanik/lumen-cors)

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

[](#installation)

After you install lumen as per [lumen docs](http://lumen.laravel.com/docs/installation#install-lumen), install lumen-cors from `lumen` folder.

### Install with [Composer](https://packagist.org/packages/Jkirkby91-2/LumenPSR7Cors)

[](#install-with-composer)

Run `composer require "Jkirkby91-2/LumenPSR7Cors"` to install lumen-cors.

Usage
-----

[](#usage)

### Global CORS

[](#global-cors)

If you want CORS enabled for every HTTP request to your application, simply list the middleware class `Jkirkby91\LumenPSR7Cors\Http\Middleware\Cors` in the $app-&gt;middleware() call of your `bootstrap/app.php` file.

### CORS for Routes

[](#cors-for-routes)

If you would like to enable CORS to specific routes, you should first assign the `lumen-cors` middleware a short-hand key in your `bootstrap/app.php` file.

```
$app->routeMiddleware([
    'cors' => 'Jkirkby91\LumenPSR7Cors\Http\Middleware\Cors',
]);
```

Then, you use the key in the route options array.

```
$app->get('/data', ['middleware' => 'cors', function() {
    //
}]);
```

More info. -

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

3124d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3075003?v=4)[James Kirkby](/maintainers/jkirkby91)[@jkirkby91](https://github.com/jkirkby91)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jkirkby91-lumenpsr7cors/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k312.3M929](/packages/symfony-psr-http-message-bridge)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

185671.3k41](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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