2017 © Pedro Peláez
 

library restful-api

A RESTful API package for thinkphp5

image

bbweyne/restful-api

A RESTful API package for thinkphp5

  • Thursday, March 15, 2018
  • by bbweyne
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

RESTful-Api

要求

PHP >= 5.5, (*1)

说明

thinkphp5编写的restful风格的API,集API请求处理,权限认证,自动生成文档等功能;, (*2)

  • restful风格处理请求, (*3)

    每个接口对于一个控制器,method对应[method]方法响应, (*4)

  • 权限认证, (*5)

    Basic,Oauth Client Credentials Grant, (*6)

  • 文档生成, (*7)

    简洁,优雅,不需要额外的文档工具;, (*8)

安装

  • 如果想在你的TP5项目中使用,那么可以直接使用
composer require bbweyne/restful-api
  • 如果是新项目先要创建tp5项目,然后再require
composer create-project topthink/think api  --prefer-dist
composer require bbweyne/restful-api
  • 如果要使用生成文档 需要在public/static/ 下 安装hadmin
cd /public/static/
git clone  https://github.com/liushoukun/hadmin.git

dome & 文档

https://github.com/liushoukun/dawn-api-demo, (*9)

The Versions

15/03 2018

dev-master

9999999-dev

A RESTful API package for thinkphp5

  Sources   Download

Apache-2.0

The Requires

 

by zhenglc

15/03 2018

1.0.0

1.0.0.0

A RESTful API package for thinkphp5

  Sources   Download

Apache-2.0

The Requires

 

by zhenglc