How to Install Composer Globally in XAMPP (LAMPP) on Ubuntu

Introduction
Composer is the standard dependency manager for PHP. It allows you to install, update, and manage the libraries your PHP applications depend on.
If you’re using the Linux version of XAMPP (LAMPP), Composer isn’t installed by default. This guide walks you through installing Composer and making it available globally so you can run the composer command from any directory in your terminal.
Prerequisite: This tutorial assumes you already have XAMPP (LAMPP) installed on Ubuntu.
Step 1: Download Composer
Open a terminal and run the following command to download Composer using the PHP executable bundled with your XAMPP installation:
sudo curl -s [https://getcomposer.org/installer](https://getcomposer.org/installer) | /opt/lampp/bin/php