This brief tutorial shows students and new users how to install PHP Composer on Ubuntu 20.04 | 18.04.

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 composer installed on the system in order to get the package installed and working.

PHP composer is frequently used to facilitate the installation and update of dynamic PHP applications that needs easier management… using 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 install Composer is to have PHP installed… so when you’re ready, follow the steps below to get Compser installed.

Step 1: Install PHP

Composer requires PHP 5.3 or higher… to install PHP on Ubuntu, run the commands below

sudo apt install php

If you need to install other versions of PHP that’s not available in Ubuntu default repositories for your system, run the commands below to install a third-party repository which contains PHP 7.2, 7.3, 7.4 and up.

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt update

Now simple run the commands below to install PHP 7.4… change the number value to install 7. 1, 7. 3 and so forth…

sudo apt install php7.

#applications #labs #linux ubuntu #composer #ubuntu 20.04 focal fossa #ubuntu

How to Install PHP Composer on Ubuntu 20.04 | 18.04
1.70 GEEK