PHPackages                             hoaaah/yii2-rest-api-template - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hoaaah/yii2-rest-api-template

ActiveLibrary[API Development](/categories/api)

hoaaah/yii2-rest-api-template
=============================

REST API Template with Yii2

v1.2.1(5y ago)351.4k↓100%13[2 issues](https://github.com/hoaaah/yii2-rest-api-template/issues)Apache-2.0PHPCI passing

Since Apr 12Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/hoaaah/yii2-rest-api-template)[ Packagist](https://packagist.org/packages/hoaaah/yii2-rest-api-template)[ RSS](/packages/hoaaah-yii2-rest-api-template/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

 [ ![](https://camo.githubusercontent.com/50eb88e66686beaca051f802d19dfc0f027dd3e8adc4858e7f1611e6f5c23bc7/68747470733a2f2f62656c616a617261726965662e636f6d2f696d616765732f796969322e706e67) ](https://github.com/yiisoft)

Yii 2 REST API Template
=======================

[](#yii-2-rest-api-template)

Yii2 REST API Template
----------------------

[](#yii2-rest-api-template)

This is a a REST API TEMPLATE with Yii2. This template use [Yii2-Micro](https://github.com/hoaaah/yii2-micro) approach so it will be lightweight and easy to deploy.

Installation
============

[](#installation)

The preferred way to install this template is through [composer](http://getcomposer.org/download/).

Either run

```
composer create-project --prefer-dist hoaaah/yii2-rest-api-template [app_name]

```

Setup your database configuration from `config/db.php`. Create your database because this template will not create it for you :)

```
