微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

PHPExcel和PhpSpreadsheet之间的主要区别是什么?

PHPOffice的项目中,有两个与电子表格文件格式相关的项目:

PHPExcel

PHPExcel is a library written in pure PHP and providing a set of classes that allow you to write to and read from different spreadsheet file formats, like Excel (BIFF) .xls, Excel 2007 (OfficeOpenXML) .xlsx, CSV, Libre/OpenOffice Calc .ods, Gnumeric, PDF, HTML, … This project is built around Microsoft’s OpenXML standard and PHP.

PhpSpreadsheets

PHPSpreadsheet is a library written in pure PHP and providing a set of classes that allow you to read from and to write to different spreadsheet file formats, like Excel and LibreOffice Calc.

它们之间的主要区别是什么?

解决方法:

PHPExcel已被维护为用于处理电子表格文件多年的库,并且因为保留对旧版本PHP(> = 5.2)的支持而受到束缚,因此很难继续前进并改进它.它是一个稳定的库,但不会再进一步​​开发.

PHPSpreadsheet是PHPExcel的最新版本,其中大部分内容已经过重写,以利用PHP的新功能.在保留PHPExcel的所有功能的同时,它需要5.5的最低PHP版本(很快就会被删除以至少需要5.6).

名称的更改是为了反映它不仅限于Excel电子表格;但支持更广泛的电子表格文件格式.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐