A problem encountered when using composer to install Yii 2.0

WBOY
Release: 2016-08-08 09:27:15
Original
1073 people have browsed it

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"
Copy after login

Similarly, the command to install Yii 2.0 is the same, just replace php composer.phar in the command with composer

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!