Linux下安装composer

Linux下安装composer

1.下载并安装composer

curl -sS https://getcomposer.org/installer | php

2.将composer设置成全局环境

mv composer.phar /usr/local/bin/composer

3.将composer网站连接地址改成国内

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

4.composer下载扩展

composer create-project topthink/think tp5

5.更新已下载的组件扩展

composer update topthink/framework

你可能感兴趣的:(Linux下安装composer)