欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

windows下安装composer流程

程序员文章站 2022-06-30 12:16:57
1.php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" 2. php -r "if (hash_file('SHA384', 'composer-setup.php') '93b54496392c0627 ......

1.php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

2. php -r "if (hash_file('sha384', 'composer-setup.php') === '93b54496392c062774670ac18b134c3b3a95e5a5e5c8f1a9f115f203b75bf9a129d5daa8ba6a13e2cc8a1da0806388a8') { 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');"