1、在 Windows 中,先下载并运行 Composer-Setup.exe,安装过程需选择php的运行目录,安装完后在windows的cmd下运行composer看看是否安装成功
2、安装完Composer,运行下面的命令来安装Composer Assets插件:
composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
3、现在选择的应用程序模板之一,开始安装 Yii 2.0,这里安装yii2的高级版
composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced D:DevlopEnvVisual-NMP-x64wwwCommonManagerProject
注意:后面那是你需要下载程序的位置
4、接下来就是耐心等待了,一般要好长时间,而且是挂着VPN:
安装过程中需要github上的token:没有的话自己生成一个,有的话忘记的话就重置一下(注意输入token的时候,跟linux中输入密码是一样的,不会显示···表示你的输入)
5、下载完后,cmd命令中,进入框架目录,输入init,按照提示初始化一些设置即可。