基于thinkphp5的restful接口框架---TPR
之前有用过phalapi和laravel5.3开发过接口,个人感觉都不是很称心称手,正好今天下午没什么事儿,用thinkphp5写了个通用的接口框架。代码量不多,重在代码逻辑设计。
PHP 开发框架
共156Star
详细介绍
面向多应用后端开发的管理系统和接口开发框架
Github: TPR-CMS
所需环境
- php7.1+
下载源码
- github
git clone https://github.com/AxiosCros/tpr-cms.git
composer install
快速使用
- 启动 web 服务
composer run
- 访问默认接口
- 访问管理系统
命令行方式
./tpr
# or
php tpr
# console output
Command Tools for TPR application 1.0.0
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
list Lists commands
make generate code of command
test test command
开源协议
遵循 MIT 开源协议发布,并提供免费使用
-
0 Star
-
8 Star
-
0 Star
-
4 Star
-
11 Star
-
70 Star
-
7 Star