How to install composer in Ubuntu or Linux machine

To install Composer on your Ubuntu or Linux system, perform the following steps:
1. Check if you have PHP installed and configured properly. If not then please follow this arcticle to do so: https://www.devopsschool.com/blog/how-to-link-php-from-xampp-installation-to-use-php-command-from-user-or-any-other-directory-in-ubuntu-or-linux/
2. Update Ubuntu OS packages by running the command: sudo apt-get update

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

4. Let’s check if composer is accessible: composer

5. Let’s make the installed composer accessible, run: sudo mv composer.phar /usr/local/bin/composer

6. Verify the installation:
composer --version
composer

Thanks for reading. I hope you enjoyed the article.

Chetan