PHP composer is frequently used to facilitate the installation and update of dynamic PHP applications that need easier management. using the composer dependencies tool, these packages can easily be installed and managed. It maintains a list of required packages in a JSON file called composer.json. This brief tutorial is going to show students how to quickly install PHP Composer on Ubuntu 16.04 / 17.10 and 18.04 One requirement for installing Composer is to have PHP installed. so when you’re ready, follow the steps below to get Composer installed.

Install PHP

Composer requires PHP 5.3 or higher. to install PHP on Ubuntu, run the commands below If you need to install other versions of PHP that are not available in Ubuntu default repositories for your system, run the commands below to install a third-party repository that contains PHP 7.0, 7.1, 7.2, and up. Now simply run the commands below to install PHP 7.2. change the number value to install 7.1, 7.3, and so forth. sudo apt install php7.2

Install Composer

Now that PHP is installed. you can now run the commands below to install Composer The commands above will download Composer from its maintainer page and install it into the /usr/local/bin directory. this is a local-global directory for application executables. Now simply run the commands below to test whether Composer is installed. The output should look like something below Now when you want to install a PHP-based application that requires Composer, simply reference this page to learn how to install Composer. After that, continue with getting your PHP application on Ubuntu. Composer can also be upgraded by running the commands below. this will upgrade all packages associated with Composer. That’s it! You may also like the post below:


title: “How To Install Php Composer On Ubuntu Linux” ShowToc: true date: “2022-12-21” author: “Michael Hannah”


PHP Composer is a package dependency management tool for PHP used by developers to manage their PHP-based projects/applications. You probably have seen some PHP applications requiring that you have a composer installed on the system to get the package installed and working. PHP composer is frequently used to facilitate the installation and update of dynamic PHP applications that need easier management. using the composer dependencies tool, these packages can easily be installed and managed. It maintains a list of required packages in a JSON file called composer.json. One requirement for installing Composer is to have PHP installed. so when you’re ready, follow the steps below to get Composer installed.

Install PHP

The composer requires PHP 5.3 or higher. to install PHP on Ubuntu, run the commands below If you need to install other versions of PHP that are not available in Ubuntu default repositories for your system, run the commands below to install a third-party repository that contains PHP 7.2, 7.3, 7.4, and up. Now simply run the commands below to install PHP 7.4. change the number value to install 7.2, 7.3, and so forth.

Install Composer

Now that PHP is installed. you can now run the commands below to install Composer The commands above will download Composer from its maintainer page and install it into the /usr/local/bin directory. this is a local-global directory for application executables. Now simply run the commands below to test whether Composer is installed. composer The output should look like something below Now when you want to install a PHP-based application that requires Composer, simply reference this page to learn how to install Composer. after that, continue with getting your PHP application on Ubuntu. The composer can also be upgraded by running the commands below. this will upgrade all packages associated with Composer. That’s it! You may also like the post below: