Hopefully, you already installed Yii-2 with composer. I have been installed (basic application template) step by step.
Step 1.
Before installation, Yii official website said that, we require to install this package before installation Yii 2. This step will follow after composer installation.
sudo composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
Please take a look attach file.
This time is yii-2 installation with composer.
sudo composer create-project yiisoft/yii2-app-basic basic 2.0.1
Please take a second and third attach image.
After that, please go to your project folder. Then, open your_project_folder/composer.json. I have been used vi to open compser.json. You can use whatever your prefer. Please take a look again for attach image.
The next step is final step for complete install for your package. After adding this
"yiisoft/yii2-jui": "*"
under require keyword, please save your composer.json file. Then run this command.
sudo composer update
Please take a look attach image again.
Please check your folder on your_project_folder/vender/yiisoft/yii2-jui
That's all. Hope this help for your stack. Btw, if you want to use composer command, please used the following command. This will help to call composer from everywhere.
sudo mv composer.phar /usr/local/bin/composer