最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Is it possible to add OpenSpout to a project, without using composer? - Stack Overflow

programmeradmin4浏览0评论

I have a php project reading data from .xlsx files that uses the no-longer-supported box/spout library. In order for it to work with the latest PHP version, I had to modify the box/spout code to add a bunch of #[\ReturnTypeWillChange] Attributes to suppress a bunch of deprecation warnings .

It seems like it would be better to use the current, supported library of OpenSpout instead, but I can't get it installed. Box/Spout I could install just by copying the files into my project and then requiring the Autoloader.php file in files where I used the library. Openspout no longer has this autoloader file and the documentation only talks about installing using Composer. Is there any way to install it like I did Box/Spout? I have to go through a lot of bureaucracy if I have to use composer.

发布评论

评论列表(0)

  1. 暂无评论