我正在尝试将composer安装到我的项目中,以便可以使用供应商/自动加载器
但是,当我尝试运行命令时:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
我收到此错误:
C:\ xampp \ htdocs \ PhpPlayground> php -r “ copy('https://getcomposer.org/installer','composer-setup.php');”
PHP警告:
copy():找不到包装器“ https”-您是否忘记启用 它在您配置PHP时?在第1行的命令行代码中
I followed every instruction to run php from my machine.
I followed this guide for installing php:
https://sitepoint.com/how-to-install-php-on-windows/
I expected to get the composer file so I can use autoloader for my namespaces.