centos7 php开发环境安装-composer

Linux 收藏 0 997
苏东旭 VIP 2020-06-18 09:34:27

1.安装composer

cd /usr/local/src
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

 

 

2.Composer 使用

chmod -R 777 /usr/local/bin/composer  (错误时修改权限)

 

3.切换国内镜像

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

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

 

4.测试

composer create-project topthink/think=5.1.* tp5   测试安装tp5
评论
  • 消灭零回复