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

AbandonedArchivedLibrary

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

1.1.0(8y ago)0138PHP

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 today

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

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

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community2

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

3028d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/be76cd7c6fbcdedbf6c741b264a2ae543e3d2f82e05448c33d16c4021fc80321?d=identicon)[jkirkby91](/maintainers/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

[nbobtc/bitcoind-php

PHP Wrapper for a bitcoind daemon

16565.4k35](/packages/nbobtc-bitcoind-php)

PHPackages © 2026

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