Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Yii2 advanced template with RESTful API setup

License

macagua/example-yii2-advanced-api

Repository files navigation

RESTful API in Yii 2 Advanced Application Template

Yii2 Advanced Application Template with RESTful API configured. Take a look at http://budiirawan.com/setup-restful-api-yii2/ for more detail explanation

Install Composer Packages

You need Composer installed first.

composer self-update
composer install

Run Yii Init

Open terminal and go to the project folder and run

Mac/Linux

php ./init

Windows

init

Choose development environment and finish the steps.

Configure Database

create your database and configure it in common/config/main-local.php

Run Database Migration

This command will create new country table and populate its data

./yii migrate

Enable Mod Rewrite if you use Apache

Make sure you already enable this mod. Follow this Tutorial

About

Yii2 advanced template with RESTful API setup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.7%
  • Batchfile 4.1%
  • CSS 3.1%
  • ApacheConf 0.1%

AltStyle によって変換されたページ (->オリジナル) /