composer require phpoffice/phpspreadsheet
Using version ^1.10 for phpoffice/phpspreadsheet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet 1.10.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- phpoffice/phpspreadsheet 1.10.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
- Installation request for phpoffice/phpspreadsheet ^1.10 -> satisfiable by phpoffice/phpspreadsheet[1.10.0, 1.10.1].
To enable extensions, verify that they are enabled in your .ini files:
- C:\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. 最佳答案