PHP Classes

File: docker/install-composer.sh

Recommend this page to a friend!
  Packages of Julio Vergara   GitHub API   docker/install-composer.sh   Download  
File: docker/install-composer.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GitHub API
Present the most starred PHP projects in GitHub
Author: By
Last change:
Date: 6 days ago
Size: 524 bytes
 

Contents

Class file image Download
#!/bin/sh EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')" php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")" if [ "$EXPECTED_CHECKSUM" != "$ACTUAL_CHECKSUM" ] then >&2 echo 'ERROR: Invalid installer checksum' rm composer-setup.php exit 1 fi php composer-setup.php --quiet RESULT=$? rm composer-setup.php mv composer.phar /usr/local/bin/composer exit $RESULT