PHPExcel和PhpSpreadsheet之间的主要区别是什么? [英] What are the main differences between PHPExcel and PhpSpreadsheet?

查看:897
本文介绍了PHPExcel和PhpSpreadsheet之间的主要区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In project of PHPOffice there are two projects associated with spreadsheet file formats:

PHPExcel

PHPExcel是一个用纯PHP编写的库,提供了一组类,这些类使您可以读写不同的电子表格文件格式,例如Excel(BIFF).xls,Excel 2007(OfficeOpenXML).xlsx,CSV,Libre /OpenOffice Calc .ods,Gnumeric,PDF,HTML等...此项目是基于Microsoft的OpenXML标准和PHP构建的.

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是一个用纯PHP编写的库,提供了一组类,使您可以读取和写入不同的电子表格文件格式,例如Excel和LibreOffice Calc.

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.

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

What are the main differences between them?

推荐答案

PHPExcel多年来一直作为用于处理电子表格文件的库而维护,并且由于保留了对旧版本PHP(> = 5.2)的支持而受到束缚. ),很难继续前进和改进它.它是一个稳定的库,但以后将不再进行开发.

PHPExcel has been maintained as a library for working with spreadsheet files for many years now, and has been shackled by retaining support for older versions of PHP (>= 5.2) making it very difficult to move forward and improve it. It is a stable library, but will not be developed any further.

PHPSpreadsheet是PHPExcel的最新版本,其中大部分已被重写以利用PHP的新功能.在保留PHPExcel的所有功能的同时,它要求PHP的最低版本为5.5(不久将被删除,要求最低为5.6).

PHPSpreadsheet is the newest version of PHPExcel, and large parts of it have been rewritten to take advantage of the newer features of PHP. While retaining all the functionality of PHPExcel, it requires a minimum PHP version of 5.5 (and soon that will be dropped to require a minimum of 5.6).

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

The change in library name was to reflect the fact that it isn't limited to Excel spreadsheets; but supports a wider range of spreadsheet file formats.

EDIT 2020:

PHP Excel于2017年正式弃用,并于2019年永久归档.

PHP Excel was officially deprecated in 2017 and permanently archived in 2019.

PHP Excel已有多年未维护,因此不能再使用. 所有用户都必须迁移到其直接后继PhpSpreadsheet或其他替代方案.

PHP Excel has not be maintained for years and must not be used anymore. All users must migrate to its direct successor PhpSpreadsheet, or another alternative.

这篇关于PHPExcel和PhpSpreadsheet之间的主要区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆