Skip to content

Instantly share code, notes, and snippets.

@kemelzaidan
Created March 23, 2016 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kemelzaidan/ea0e1a09ab0210796841 to your computer and use it in GitHub Desktop.
Save kemelzaidan/ea0e1a09ab0210796841 to your computer and use it in GitHub Desktop.
Código de exemplo de instalação do composer para o artigo do HumHub no blog da Locaweb
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '41e71d86b40f28e771d4bb662b997f79625196afcca95a5abf44391188c695c6c1456e16154c75a211d238cc3bc5cb47') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment