Download the PHP package tmecareer/yii-fast-api without Composer
On this page you can find all versions of the php package tmecareer/yii-fast-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tmecareer/yii-fast-api
More information about tmecareer/yii-fast-api
Files in tmecareer/yii-fast-api
Download tmecareer/yii-fast-api
More information about tmecareer/yii-fast-api
Files in tmecareer/yii-fast-api
Vendor tmecareer
Package yii-fast-api
Short Description A component to develop api faster on yii2 framework
License BSD-3-Clause
Package yii-fast-api
Short Description A component to develop api faster on yii2 framework
License BSD-3-Clause
Please rate this library. Is it a good library?
Informations about the package yii-fast-api
yii2-fast-api
yii2-fast-api是一个Yii2框架的扩展,用于配置完善Yii2,以实现api的快速开发。 此扩展默认的场景是APP的后端接口开发,因此偏向于实用主义,并未完全采用restfull的标准,方便前端开发处理接口数据以及各种异常。
Installation
使用 Composer 安装
-
在项目中的
composer.json
文件中添加依赖: -
执行
$ php composer.phar update
或$ composer update
进行安装。 - 在配置文件中( Yii2 高级版为 main.php,Yii2 基础版为 web.php )注入 fast-api 的配置:
Usage
-
建立控制器
- 发送请求看看
正常请求
返回
缺少参数的请求
返回错误
- 查看自动生成的Api文档
http ://yoursite.com/route/api/index
Words In The End
感谢@暗夜在火星 的PhalApi项目,为此Yii2扩展提供设计的思路。
TODO
- 更完善的文档指南
- Signature 过滤器插件
- 限流插件的使用
- RequestID 以及日志存储追踪的参考
All versions of yii-fast-api with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
~2.0.9
The package tmecareer/yii-fast-api contains the following files
Loading the files please wait ....