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)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 1mo ago

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 54% 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

3079d 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

[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[laudis/neo4j-php-client

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

184616.9k31](/packages/laudis-neo4j-php-client)[http-interop/response-sender

A function to convert PSR-7 Response to HTTP output

46711.5k40](/packages/http-interop-response-sender)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[mezzio/mezzio-authentication-oauth2

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

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)

PHPackages © 2026

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