聯系官方銷售客服
1835022288
028-61286886
安裝 phpexcel 報錯
http://www.zbshanke.com/doc/1026.html
執行
composer require phpoffice/phpspreadsheet
報錯
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Using version ^1.17 for phpoffice/phpspreadsheet
./composer.json has been created
Running composer update phpoffice/phpspreadsheet
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet[1.17.0, ..., 1.17.1] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires phpoffice/phpspreadsheet ^1.17 -> satisfiable by phpoffice/phpspreadsheet[1.17.0, 1.17.1].
To enable extensions, verify that they are enabled in your .ini files:
- /www/server/php/74/etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, deleting ./composer.json.
Your requirements could not be resolved to an installable set of packages.
你這個是網絡問題,因為Composer下載php程序時需要訪問國外的網站下載,國內訪問國外很慢的,建議使用vpn翻墻訪問
境外網站肯定會超時了,用中文鏡像吧https://www.phpcomposer.com/
用國內鏡像啊
翻墻是王道
回復@向錢看

能下載了,但是卡在這里怎么回事
上面英文說明了,網絡問題
錯誤提示是php版本低了,php74以上才行