Alternate yii2 setup

Composer setup

Install php5-json as it is required for composer.

As root:

cd /tmp
curl -sS | php -- --install-dir=/usr/bin
ln -s /usr/bin/composer.phar /usr/bin/composer

Directory Setup

Choose and create a directory to install yii2. E.g. /data/yii2

mkdir -p $YII2DIR
export COMPOSER_HOME=`pwd`
composer.phar global require "fxp/composer-asset-plugin:1.0.0-beta2"
composer.phar create-project yiisoft/yii2-app-advanced advanced 2.0.0-rc

QR Code
QR Code tech:yii2:setup_alt (generated for current page)