参考链接:https://www.kancloud.cn/thinkphp/thinkphp5_quickstart/478269

 

在 Windows 中,你需要下载并运行 Composer-Setup.exe

设置国内镜像的下载源:

$ composer config -g repo.packagist composer https://packagist.phpcomposer.com

下载thinkphp5.0示例

$ composer create-project topthink/think=5.0.*  tp5  --prefer-dist

下载thinkphp5.0验证码组件示例

$ composer require topthink/think-captcha=1.*

window 环境  Composer 安装 thinkphp5_其他

 

更新Composer到最新版本

$ composer update