cmd命令行窗口长时间没反应
使用国内镜像
打开命令行窗口(windows用户)或控制台(Linux、Mac 用户)并执行如下命令:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
镜像还原
如果需要解除镜像并恢复到 packagist 官方源,请执行以下命令:
composer config -g --unset repos.packagist
安装前请先安装composer,我的php是5.4,所以使用
composer require topthink/think-captcha=1.*
默认是3.0的,thinkphp6版本的,2.0是thinkphp5.1版本的