Hope you already installed Yii-2 with composer. I was installed (the basic application template) step by step.
Step 1. Before installation, the official Yii website said that we need to install this package before installing Yii 2. This step will be performed after installing the composer.
sudo composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
Please see the attached file.

This time install yii-2 with composer.
sudo composer create-project yiisoft/yii2-app-basic basic 2.0.1
Please take the second and third attachment images.


After that, go to the project folder. Then open your_project_folder / composer.json . I used vi to open compser.json . You can use whatever you want. Please take a look at the attached image again.

The next step is the final step to fully install your package. After adding this
"yiisoft/yii2-jui": "*"
under the required keyword , save the composer.json file. Then run this command.
sudo composer update
Please take a look at the attached image again.

Please check your folder at your_project_folder / vender / yiisoft / yii2-jui

It's all. Hope this help is for your stack. Btw, if you want to use the composer command, use the following command. This will help call the composer around the world.
sudo mv composer.phar /usr/local/bin/composer
source share