fbacks/yii2-api-template
Composer 安装命令:
composer create-project fbacks/yii2-api-template
包简介
Yii 2 REST API Template
README 文档
README
This is a a REST API template built using Yii2. This template use Yii2-Micro approach so it will be lightweight and easy to deploy.
The detailed documentation can be found at docs/README.md.
Requirements
The minimum requirement by this project template is that your Web server supports PHP 5.4.0. Also it is recommended that your php installation has the following modules enabled:
- intl: to use advanced parameters formatting in Yii::t()
To check the full requirements, please copy requirements.php from the project root to api/web folder, then navigate to the file from your web browser.
Installation
The preferred way to install this template is through composer using the following command:
composer create-project --prefer-dist fbacks/yii2-api-template [app_name]
DIRECTORY STRUCTURE
common
config/ contains shared configurations
mail/ contains view files for e-mails
models/ contains model classes used in both backend and frontend
tests/ contains tests for common classes
console
config/ contains console configurations
controllers/ contains console controllers (commands)
migrations/ contains database migrations
models/ contains console-specific model classes
runtime/ contains files generated during runtime
api
config/ contains api configurations
modules/ contains Web controller classes
runtime/ contains files generated during runtime
tests/ contains tests for api application
web/ contains the entry script and Web resources
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-05-26