https://github.com/frostealth/yii2-api-basic
Yii 2 Basic API Template
https://github.com/frostealth/yii2-api-basic
api project-template yii2
Last synced: 8 months ago
JSON representation
Yii 2 Basic API Template
- Host: GitHub
- URL: https://github.com/frostealth/yii2-api-basic
- Owner: frostealth
- License: mit
- Created: 2015-12-18T17:46:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-20T09:07:39.000Z (over 10 years ago)
- Last Synced: 2025-01-31T09:22:15.531Z (over 1 year ago)
- Topics: api, project-template, yii2
- Language: PHP
- Size: 23.4 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Yii 2 Basic API Template
===============================
Yii 2 Basic API Template is a skeleton [Yii 2](http://www.yiiframework.com) application best for rapidly
creating small API applications.
The template is designed to work in a team development environment.
It supports deploying the application in different environments.
INSTALLATION
------------
## Install via Composer
Run the [Composer](http://getcomposer.org) commands to install:
```bash
composer global require fxp/composer-asset-plugin ~1.1.1
composer create-project --prefer-dist frostealth/yii2-api-basic my-api
```
## Preparing application
After you install the application, you have to copy the `.env.example` file to `.env` and fill-in your own values.
DIRECTORY STRUCTURE
-------------------
```
commands/ contains console controllers (commands)
common
controllers/ contains shared api-specific controllers
models/ contains shared api-specific model classes
config/ contains application configurations
mail/ contains view files for e-mails
runtime/ contains files generated during runtime
versions contains api versions as modules
v1/
controllers/ contains version-specific controllers
models/ contains version-specific model classes
web/ contains the entry script
vendor/ contains dependent 3rd-party packages
```