1.下载composer

https://getcomposer.org/download/
2.新建composer.bat

@php "%~dp0composer.phar" %*
3.把两个文件移至php目录下

F:\phpStudy\PHPTutorial\php\php-7.2.1-nts
4.检查是否安装成功,请事先添加php系统环境变量

compser -v
5.设置中国镜像,推荐以下几个,请根据喜好自行选择

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer config -g repos.packagist composer https://mirrors.cloud.tencent.com/composer/
composer config -g repo.packagist composer https://packagist.laravel-china.org







点赞(1) 打赏

Comment list 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部