Last Updated on August 31, 2020 by Vikash Ekka
How To Install PHP Composer on Ubuntu |
This tutorial will help you how to install and configure the PHP composer on Ubuntu 20.04 LTS, Ubuntu 18.04 LTS and Ubuntu 16.04 LTS. Composer is an application-level package manager for the PHP programming language. It provides a standard format for managing dependencies of PHP software and required libraries. It define required libraries for our project and install it with the composer in the single command
Prerequisites
- Open Terminal in sudo privilege.
- PHP must be installed and configured, version 5.3 or higher.
- Ubuntu should be updated.
Install Composer on Ubuntu
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer
composer --version