Install Composer on CentOS

来源:互联网 发布:全军战备值班部队 知乎 编辑:程序博客网 时间:2024/05/09 15:33
Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.


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.
0 0
原创粉丝点击