在用composer命令安装,输入composer require phpoffice/phpspreadsheet,然后报错了
翻译过来后是
该如何解决?
用的是tp5框架
想要读取excal文件的一些数据。
在用composer命令安装,输入composer require phpoffice/phpspreadsheet,然后报错了
该如何解决?
用的是tp5框架
想要读取excal文件的一些数据。
这个是从github下载的插件,因为github是外网,所以经常会超时。
解决:切换composer源为国内镜像
// 切换为阿里源命令
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
// 查看源命令
composer config -g -l
切换后,再重新执行composer require