Install Composer on CentOS

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Install Composer on CentOS相关的知识,希望对你有一定的参考价值。

First you have to go to the /tmp directory

cd /tmp



Download the composer.phar file

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



Move it to /usr/local/bin/

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



Now you can to use the command composer globally.













以上是关于Install Composer on CentOS的主要内容,如果未能解决你的问题,请参考以下文章

How to Install Laravel PHP Framework on CentOS 7 / Ubuntu 15.04

Centos7安装Docker

Cento7+Nginx 之 URL重写

composer install 和updaterequire的使用

laravel54composer install与composer update的区别

解决composer install 卡住的问题