http://www.yiichina.com/download
安装composer:
composer -v
E:\xampp\htdocs\yiipro\basic>composer -v
______
/ ____/___ ____ ___ ____ ____ ________ _____
/ / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
/_/
Composer version 1.5.2 2017-09-11 16:59:25
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
composer安装yii2.0
composer global require "fxp/composer-asset-plugin:^1.3.1"
composer create-project --prefer-dist yiisoft/yii2-app-basic basic
Could not fetch https://api.github.com/repos/jquery/jquery-dist, please create a
GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+
on+DXB6H9HXTPTLC4M+2017-11-20+1507
to retrieve a token. It will be stored in "C:/Users/Administrator/AppData/Roamin
g/Composer/auth.json" for future use by Composer.
5fc443451330387aa7aeb5b444b2306b9a3b1502