abonnel-siteweb/data/pages/informatique/langage/php/composer.txt

19 lines
602 B
Plaintext
Raw Permalink Normal View History

2024-01-07 10:02:35 +01:00
====== Composer ======
{{ :informatique:langage:php:logo-composer-transparent.png?75x75|Composer}}
===== - Installer =====
<code BASH>
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { 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
</code>