当我在命令提示符中键入 php 时,结果
C:\Users\samsung>php
'php' is not recognized as an internal or external command,
operable program or batch file.
我已经在我的 Windows 10 中安装了 xampp,并且我没有在设置中编辑 php.ini 文件。启用此 php 命令的任何帮助将不胜感激,因为我因此在我的 laravel 作曲家设置中存货。
原文由 Programmer Sishir 发布,翻译遵循 CC BY-SA 4.0 许可协议
安装composer,在安装过程中允许composer添加php到你的路径:
https://getcomposer.org/Composer-Setup.exe