phpexcel.php,PHPExcel和PhpSpreadsheet之间的主要区别是什么?

PHPExcel是一个稳定的PHP库,用于读写多种电子表格格式,但因支持旧版PHP(>=5.2)而限制了其发展。而PhpSpreadsheet是PHPExcel的更新版本,大部分代码已重写,利用了PHP的新特性,需要PHP 5.5以上的版本。PhpSpreadsheet旨在提供更广泛的支持,包括更多的文件格式。
摘要由CSDN通过智能技术生成

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

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.

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电子表格;但支持更广泛的电子表格文件格式.

标签:php,phpexcel,phpspreadsheet,phpoffice

来源: https://codeday.me/bug/20191006/1859198.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值