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

Abandoned → [fruitcake/laravel-cors](/?search=fruitcake%2Flaravel-cors)Package[HTTP &amp; Networking](/categories/http)

vluzrmos/lumen-cors
===================

A Simple Lumen CORS.

v2.1.2(8y ago)43157.6k↓15.6%10[1 issues](https://github.com/vluzrmos/lumen-cors/issues)MITPHPPHP &gt;=5.5.9

Since May 11Pushed 3y ago3 watchersCompare

[ Source](https://github.com/vluzrmos/lumen-cors)[ Packagist](https://packagist.org/packages/vluzrmos/lumen-cors)[ RSS](/packages/vluzrmos-lumen-cors/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (25)Used By (0)

\[ABANDONED\]
=============

[](#abandoned)

Please consider to use [fruitcake/laravel-cors](https://github.com/fruitcake/laravel-cors), that is part of Laravel core.

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

[](#lumen-cors-package)

[![Join the chat at https://gitter.im/vluzrmos/lumen-cors](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/vluzrmos/lumen-cors?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![Lumen Version](https://camo.githubusercontent.com/9b5b62166d22e7050ca6423b138ebd9578c6b47c87c930d79ad1d62f907b997b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c756d656e2d352e2a2d6f72616e67652e737667)](https://packagist.org/packages/vluzrmos/lumen-cors)[![Latest Stable Version](https://camo.githubusercontent.com/aff22b193746e7aa081dfc75460640696b32900f83d8d6164eaf203fa010cf53/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d636f72732f762f737461626c65)](https://packagist.org/packages/vluzrmos/lumen-cors)[![Total Downloads](https://camo.githubusercontent.com/db4ff71fa96f36d3acb69caa67230424a93c5498adb168b3371691f2f6334240/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d636f72732f646f776e6c6f616473)](https://packagist.org/packages/vluzrmos/lumen-cors)[![License](https://camo.githubusercontent.com/7565100605c9e9320f265b77937a4f80adea81da48ab8c841b0c29ee546c0bac/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d636f72732f6c6963656e7365)](https://packagist.org/packages/vluzrmos/lumen-cors)[![Build Status](https://camo.githubusercontent.com/afc14230d530fd4ad62fda98e41f97f5d8362c337de7a8bbb5e6f1dcf9669890/68747470733a2f2f7472617669732d63692e6f72672f766c757a726d6f732f6c756d656e2d636f72732e737667)](https://travis-ci.org/vluzrmos/lumen-cors)[![StyleCI](https://camo.githubusercontent.com/50528f64447ef5ec07e361e14a6f73141981a44d282f88dd250bec59a5fb30a7/68747470733a2f2f7374796c6563692e696f2f7265706f732f33353339393035352f736869656c64)](https://styleci.io/repos/35399055)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6f7f913f7dca009b66aa782e94d6a1242fe8bc70e31342f99aea191de0a4d0f1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766c757a726d6f732f6c756d656e2d636f72732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vluzrmos/lumen-cors/?branch=master)

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

> Note: That should works fine on Laravel Framework too, but the tests are performed to Lumen.

Install
=======

[](#install)

```
composer require "vluzrmos/lumen-cors=2.1.*"
```

Configure
=========

[](#configure)

On `boostrap/app.php` register the middleware:

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

> You are free to use ::class notation.

And that is it!

Considerations
==============

[](#considerations)

That package stands to be free of configurations, then if you want a more configurable package please consider to see one of these:

- [Barryvdh/LaravelCors](https://github.com/barryvdh/laravel-cors)
- [Nordsoftware/LumenCors](https://github.com/nordsoftware/lumen-cors)

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 94.3% 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.

###  Release Activity

Cadence

Every ~33 days

Recently: every ~178 days

Total

24

Last Release

3255d ago

Major Versions

v1.2.3 → v2.0.02015-07-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/450848?v=4)[Vagner Luz do Carmo](/maintainers/vluzrmos)[@vluzrmos](https://github.com/vluzrmos)

---

Top Contributors

[![vluzrmos](https://avatars.githubusercontent.com/u/450848?v=4)](https://github.com/vluzrmos "vluzrmos (50 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")[![jaredh159](https://avatars.githubusercontent.com/u/7050938?v=4)](https://github.com/jaredh159 "jaredh159 (1 commits)")[![mattpatterson94](https://avatars.githubusercontent.com/u/4578986?v=4)](https://github.com/mattpatterson94 "mattpatterson94 (1 commits)")

---

Tags

laravelcorslumen

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[palanik/lumen-cors

Cross-origin resource sharing (CORS) middleware for Lumen micro-framework.

101237.4k](/packages/palanik-lumen-cors)[neomerx/cors-illuminate

CORS (Cross-Origin Resource Sharing) support for Laravel and Lumen

4996.4k2](/packages/neomerx-cors-illuminate)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[laragear/json

Easily retrieve and manipulate `Json` across your application.

363.5k](/packages/laragear-json)

PHPackages © 2026

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