php

composer创建tp项目,提示You can also run `php --ini`解决方法

2023-09-13

To enable extensions, verify that they are enabled in your .ini files:
    - D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

查找原因是php需要开启fileinfo扩展,

编辑php.ini文件,打开extension=php_fileinfo.dll 就可以了,重新运行composer命令,安装成功