2017 © Pedro Peláez
 

library aycors

thinkphp5 for cors

image

ayteam/aycors

thinkphp5 for cors

  • Wednesday, August 9, 2017
  • by anyuan
  • Repository
  • 0 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

aycors

thinkphp5 for cors, (*1)

安装方法

第一步 使用composer下载SDK

composer require ayteam/aycors

第二步 项目根目录执行

php think cors:config

查看application/extra/cors.php这个文件是否存在, 如果不存在复制一份 config.php 到 application/extra, (*2)

使用方法

参考阅读 跨域资源共享 CORS 详解, (*3)

return Cors::json(['code'=>1]); // 替代 return json(['code'=>1]);

The Versions

09/08 2017

dev-master

9999999-dev https://github.com/ayteam/aycors

thinkphp5 for cors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by ayteam

cors thinkphp5 cross-origin resource sharing

08/08 2017

1.1

1.1.0.0 https://github.com/ayteam/aycors

thinkphp5 for cors

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by ayteam

cors thinkphp5 cross-origin resource sharing