Tuesday, August 30, 2022

How to install composer and use it on Ubuntu

sudo apt update
sudo apt install wget php-cli php-zip unzip
wget -O composer-setup.php https://getcomposer.org/installer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
sudo php composer-setup.php --install-dir=/path/to/project
sudo composer self-update  
composer require nesbot/carbon

No comments:

Post a Comment

Resetting the DirectAdmin Password via SSH:

  Resetting the Password via SSH: Access the server as root:   Use an SSH program like PuTTY to connect to your server as the root user.   R...