: This article mainly introduces a problem encountered when using composer to install Yii2.0. if you are interested in the PHP Tutorial, refer to it. Yii 2.0 has changed a lot from version 1.0 to version, and the installation method is different (complicated). according to instructions on the official website, they suggest using the composer program to download and install it. okay, then I will install composer according to their suggestions. after downloading and installing composer, I will enter the command in the installation guide document to download the composer plug-in. the following error is returned:
Go to google and find that if you use the exe file on windows to install composer, the correct command for installing the plug-in above should be:
Composer global require "fxp/composer-asset-plugin: 1.0.0"
Similarly, the command for installing Yii 2.0 is the same. you only need to replace php composer. phar in the command with composer.
The above introduces a problem encountered when installing Yii 2.0 using composer, including some content, and hope to help friends who are interested in PHP tutorials.