参考:
1、https://getcomposer.org/doc/00-intro.md#installation-windows
2、http://blog.segmentfault.com/luxixing/1190000000492450
补充:
GIT上yii中文安装及手册
手册:https://github.com/yiisoft/yii2/tree/master/docs/guide-zh-CN
目录结构介绍:https://github.com/yiisoft/yii2/blob/master/docs/guide-zh-CN/start-workflow.md
安装:https://github.com/yiisoft/yii2/blob/master/docs/guide-zh-CN/start-installation.md
安装步骤:
1、手动安装Composer
我安装到E:/server目录下
E:\server>php -r "readfile('https://getcomposer.org/installer');" | php
Close your current terminal. Test usage with a new terminal:
C:\Users\aa>composer -V
Composer version 28c65b5425f7f8722c260e3787b74c1ea6b37e3b 2014-06-22 18:24:28
安装成功后会在E:\server目录下生成文件composer.phar
2、用Composer安装初始化yii项目
E:\server>php composer.phar create-project --prefer-dist --stability=dev yiisoft /yii2-app-basic E:/code/php/yii/basic
Yii框架安装目录:E:\Code\PHP\yii\basic
3、测试安装是否成功
http://localhost/yii/basic/web/index.php