yii2安装

Warning: require(D:Apache2.2htdocsyii2asicweb/../vendor/autoload.php): failed to open stream: No such file or directory in D:Apache2.2htdocsyii2asicwebindex.php on line 7

Fatal error: require(): Failed opening required 'D:Apache2.2htdocsyii2asicweb/../vendor/autoload.php' (include_path='.;C:phppear') in D:Apache2.2htdocsyii2asicwebindex.php on line 7

 php.ini中

include_path='.;C:phppear' 前面的分号注释去掉

C:Userswt>d:

D:>cd apache2.2/htdocs/yii2

D:Apache2.2htdocsyii2>composer global require "fxp/composer-asset-plugin:1.0.0-beta3"

D:Apache2.2htdocsyii2>composer create-project --prefer-dist yiisoft/yii2-app-
basic basic

参考:

http://docwithcn.com/guide-start-installation.html

http://www.yiichina.com/guide/2/start-installation

http://www.digpage.com/convention.html

原文地址:https://www.cnblogs.com/walter371/p/4056674.html