July 26, 2021
Ubuntu安装Composer, Ubuntu升级Composer, 升级Composer 1.x 到 2.x, How to Install and Use PHP Composer on Ubuntu 20.04
![Ubuntu安装Composer, Ubuntu升级Composer, 升级Composer 1.x 到 2.x, How to Install and Use PHP Composer on Ubuntu 20.04](https://justcode.ikeepstudying.com/wp-content/uploads/2021/07/featured_hu2c9ea9a527ce369d5cd8306cee560ff0_34343_768x0_resize_q75_lanczos-150x150.jpg)
升级的方法很简单,就是先卸载后安装:
# you need to first remove the composer
sudo apt-get remove composer
# ubuntu install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
# and then type the below command to install composer globally
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=compo… Read More