vluzrmos/lumen-cors 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

vluzrmos/lumen-cors

最新稳定版本:v2.1.2

Composer 安装命令:

composer require vluzrmos/lumen-cors

包简介

A Simple Lumen CORS.

README 文档

README

Please consider to use fruitcake/laravel-cors, that is part of Laravel core.

Lumen Cors Package

Join the chat at https://gitter.im/vluzrmos/lumen-cors

Lumen Version Latest Stable Version Total Downloads License Build Status StyleCI Scrutinizer Code Quality

A Simple Cross Origin Resource Sharing for Lumen Framework.

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

Install

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

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

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

统计信息

  • 总下载量: 156.43k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 47
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 46
  • Watchers: 4
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-11