Showing posts with label yii2. Show all posts
Showing posts with label yii2. Show all posts

Setup RESTful API in Yii2 Advanced Application

While researching for RESTful API implementation in Yii2, I've came across this: Setup RESTful API in Yii2.

It is based on a very old Yii2 beta advanced application, but the knowledge and the techniques are perfectly up to date.
You'll need to understand Routing.

./M6

Installing Yii2 via Composer

Installing Yii2 via Composer is not hard. Currently, the stable version available is 2.0.6.
Here's how to really do it, the easy way:
sudo apt-get install composer
composer global require "fxp/composer-asset-plugin:~1.1.1"

For installing the basic version of the framework:
composer create-project yiisoft/yii2-app-advanced mywebsite 2.0.6

For installing the advanced version of the framework:
composer create-project yiisoft/yii2-app-advanced mywebsite 2.0.6

You will require a GitHub token, which requires an account, but it's an easy an straightforward step.

./M6