How to Install Composer in Ubuntu 20.10 | UPDATED

Опубликовано: 18 Август 2026
на канале: Prateek Rao
321
5

In this video, we will see how to install composer in ubuntu.
Composer is a PHP dependency management tool. You can declare the libraries that your project depends on and install (update/manage) them for you.
#composer

Commands:

To Install Php:
$ sudo apt install php

To Check Php version Installed:
$ php -v

To Install Composer Package:
$ curl -Ss https://getcomposer.org/installer | php

To move the file into bin directory
$ sudo mv composer.phar /usr/local/bin/composer

To make the file exectuable
$ chmod +x /usr/local/bin/composer

To make the composer auto update
$ sudo composer self -update

Please like and Comment to support.
Thanks for watching