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

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

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

omarusman/lumen-cors

Composer 安装命令:

composer require omarusman/lumen-cors

包简介

A Simple Lumen CORS. This also supports Lumen 5.1.

README 文档

README

A Simple Cross Origin Resource Sharing 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.

Version 1, December 2009

Copyright (C) 2009 Philip Sturgeon me@philsturgeon.uk

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.

统计信息

  • 总下载量: 922
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 10
  • 开发语言: PHP

其他信息

  • 授权协议: DBAD
  • 更新时间: 2015-06-18