QQ扫一扫联系
项目需要excel导出,安装 maatwebsite/excel 的时候失败
PHP8.1、系统版本 modstart-laravel9、
1 composer require maatwebsite/excel
2
Problem 1
- Root composer.json requires ezyang/htmlpurifier ^4.16, found ezyang/htmlpurifier[v4.16.0] but these were not loaded, likely because it conflicts with another require.
Problem 2
- modstart/modstart dev-master requires ezyang/htmlpurifier dev-master -> found ezyang/htmlpurifier[dev-master] but it conflicts with your root composer.json require (^4.16).
- modstart/modstart-laravel9 dev-master requires modstart/modstart dev-master -> satisfiable by modstart/modstart[dev-master].
- modstart/modstart-laravel9 is locked to version dev-master and an update of this package was not requested.
3 尝试了 phpoffice/phpspreadsheet 也一样。
4 maatwebsite/excel 依赖 ezyang/htmlpurifier 4.16 ;但是mostart-laravel9 依赖 ezyang/htmlpurifier dev-master
目前 ezyang/htmlpurifier 不支持 HTML 5,故我们采用了自己维护的一个版本,所以和所需要的依赖有一定的冲突。