Yii 2.0 has changed a lot compared to version 1.0. Even the installation method is different (becomes more complicated). According to the instructions on the official website, they recommend using the composer program to download and install. Well, then I will follow their suggestions. To install, after downloading and installing composer, enter the command in the installation guide document to download the composer plug-in. The result prompts the following error:
Go to Google and find that if you use an exe file on Windows If you install composer, the correct command to install the plug-in above should be:
composer global require "fxp/composer-asset-plugin:1.0.0"
The above introduces a problem encountered when using composer to install Yii 2.0, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.