php – composer – Windows CLI instalace

Od posmura

 

  1. php -r “readfile(‘https://getcomposer.org/installer’);” > composer-setup.php

  2. 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;”

  3. php composer-setup.php

  4. php -r “unlink(‘composer-setup.php’);”