![]() ![]() ![]() If the hashes match, you’ll see the following output: To verify that the installation script is not corrupted copy and paste the following code into your console: php -r "if (hash_file('SHA384', 'composer-setup.php') = '$HASH') echo PHP_EOL " ![]() To download the expected signature of the latest Composer installer from the Composer’s Github page and store it in a variable named HASH: HASH="$(wget -q -O - )" We’ll verify the script data integrity by comparing the script SHA-384 hash with the latest installer hash found on the Composer Public Keys / Signatures The command above will download the composer-setup.php file in the current working directory Once the dependencies are installed, use the php cli toll to download the Composer installation script: php -r "copy('', 'composer-setup.php') " Prerequisites #īefore continuing with this tutorial, make sure you are logged in as a user with sudo privilegesĪnd you have PHP installed on your Debian 9įollow the steps below to install Composer on Debian systems:įirst update the packages index and install the necessary packages with the following commands: sudo apt update sudo apt install php-cli php-zip wget unzip We will also cover how to use Composer to create and manage PHP projects. This tutorial provides the steps necessary to install Composer on Debian 9 systems. ![]() Composer will pull in all the required PHP packages your project depends on and manage them for you. Is a dependency manager for PHP (similar to npm for Node.js ![]()
0 Comments
Leave a Reply. |