Skip to content

Composer

Filip Krzyżanowski edited this page Nov 12, 2022 · 1 revision

1. Update and upgrade apt package manager

sudo apt update && sudo apt upgrade -y

2. Install required PHP packages

Replace php8.1 with yours PHP version

sudo apt install wget php8.1-cli php8.1-zip unzip -y

3. Download Composer installer

wget -O composer-setup.php https://getcomposer.org/installer

4. Install Composer globally (For all users)

You can change installation directory by changing /usr/local/bin in --install-dir= parameter

sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer

5. Update Composer

sudo composer self-update  

6. Check Composer version

sudo composer --version  
Clone this wiki locally