安装yii2高级应用模板

composer global require "fxp/composer-asset-plugin:1.0.0"
composer create-project --prefer-dist yiisoft/yii2-app-advanced project-name

下载完后运行yii.bat和init.bat文件

原文地址:https://www.cnblogs.com/toward-the-sun/p/4420839.html