19.07.2021 | 755 | SQL

Installing, updating, deleting project packages and installing composer

Installing composer

php -r "copy('', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer

Updating packages (project)

Launching php composer update

Deleting a package

Deleting from the composer file.json (in the "require" section)
Removing class connections from app.php
php composer update

← Back

Comments (0)