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