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

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

omarusman/lumen-cors
====================

A Simple Lumen CORS. This also supports Lumen 5.1.

01.2kPHP

Since Jun 18Pushed 11y ago1 watchersCompare

[ Source](https://github.com/oozman/lumen-cors)[ Packagist](https://packagist.org/packages/omarusman/lumen-cors)[ RSS](/packages/omarusman-lumen-cors/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Lumen Cors Package
==================

[](#lumen-cors-package)

A Simple [Cross Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) for Lumen Framework. Tested on Lumen 5.1.

\##Install

```
composer require omarusman/lumen-cors
```

\##Configure

On `boostrap/app.php` register the service provider:

```
$app->register('OmarUsman\LumenCors\Providers\CorsServiceProvider');
```

And the middleware:

```
$app->middleware([
	//...,
	'OmarUsman\LumenCors\Middlewares\CorsMiddleware'
]);
```

And that is it!

\##License

\##DON'T BE A DICK PUBLIC LICENSE

[Source](http://www.dbad-license.org/).

Version 1, December 2009

Copyright (C) 2009 Philip Sturgeon

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DON'T BE A DICK PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

1. Do whatever you like with the original work, just don't be a dick.

    Being a dick includes - but is not limited to - the following instances:

    1a. Outright copyright infringement - Don't just copy this and change the name. 1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick. 1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.
2. If you become rich through modifications, related works/services, or supporting the original work, share the love. Only a dick would make loads off this work and not buy the original works creator(s) a pint.
3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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/b7873525fae46bef18348acdec01485e6dc61f4fdf9cbdf4f3dc76ec65b2520b?d=identicon)[omarusman](/maintainers/omarusman)

---

Top Contributors

[![vluzrmos](https://avatars.githubusercontent.com/u/450848?v=4)](https://github.com/vluzrmos "vluzrmos (10 commits)")[![mattpatterson94](https://avatars.githubusercontent.com/u/4578986?v=4)](https://github.com/mattpatterson94 "mattpatterson94 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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