php PHP_excel 的替代品
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3930975/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Alternative for PHP_excel
提问by sandeep
Is there any alternative for PHP_excel which can "Export to XLSX/XLS" file in a customized format?
PHP_excel 是否有任何替代方案可以以自定义格式“导出到 XLSX/XLS”文件?
This is a General Referencequestion for the phptag
采纳答案by Eli
I wrote a very simple class for exporting to "Excel XML" aka SpreadsheetML. It's not quite as convenient for the end user as XSLX (depending on file extension and Excel version, they may get a warning message), but it's a lot easier to work with than XLS or XLSX.
我编写了一个非常简单的类,用于导出到“Excel XML”又名 SpreadsheetML。对于最终用户来说,它不如 XSLX 方便(取决于文件扩展名和 Excel 版本,他们可能会收到警告消息),但它比 XLS 或 XLSX 更容易使用。
回答by Mark Baker
For Writing Excel
用于编写 Excel
- PEAR's PHP_Excel_Writer(xls only)
- php_writeexcelfrom Bettina Attack (xls only)
- XLS File Generatorcommercial and xls only
- Excel Writer for PHPfrom Sourceforge (spreadsheetML only)
- Ilia Alshanetsky's Excel extensionnow on github(xls and xlsx, and requires commercial libXLcomponent)
- PHP's COM extension(requires a COM enabled spreadsheet program such as MS Excel or OpenOffice Calc running on the server)
- The Open Office alternative to COM (PUNO) (requires Open Office installed on the server with Java support enabled)
- PHP-Export-Databy Eli Dickinson (Writes SpreadsheetML - the Excel 2003 XML format, and CSV)
- Oliver Schwarz's php-excel(SpreadsheetML)
- Oliver Schwarz's original version of php-excel(SpreadsheetML)
- excel_xml(SpreadsheetML, despite its name)... link reported as broken
- The tiny-but-strong (tbs) project includes the OpenTBStool for creating OfficeOpenXML documents (OpenDocument and OfficeOpenXML formats)
- SimpleExcelClaims to read and write Microsoft Excel XML / CSV / TSV / HTML / JSON / etc formats
- KoolGridxls spreadsheets only, but also doc and pdf
- PHP_XLSXWriterOfficeOpenXML
- PHP_XLSXWriter_plusOfficeOpenXML, fork of PHP_XLSXWriter
- php_writeexcelxls only (looks like it's based on PEAR SEW)
- spoutOfficeOpenXML (xlsx) and CSV
- Slamdunk/php-excel(xls only) looks like an updated version of the old PEAR Spreadsheet Writer
- PEAR 的PHP_Excel_Writer(仅 xls)
- 来自Bettina Attack的php_writeexcel(仅xls)
- XLS 文件生成器商业版和仅 xls
- 来自 Sourceforge 的Excel Writer for PHP(仅限电子表格)
- Ilia Alshanetsky 的Excel 扩展现在在github 上(xls 和 xlsx,需要商业libXL组件)
- PHP 的COM 扩展(需要在服务器上运行支持 COM 的电子表格程序,例如 MS Excel 或 OpenOffice Calc)
- COM ( PUNO)的 Open Office 替代方案(需要在启用 Java 支持的服务器上安装 Open Office)
- PHP-Export-Databy Eli Dickinson(编写SpreadsheetML - Excel 2003 XML 格式和 CSV)
- Oliver Schwarz 的php-excel(SpreadsheetML)
- Oliver Schwarz 的原始版本php-excel(SpreadsheetML)
- excel_xml(SpreadsheetML,尽管它的名字)...链接报告为损坏
- tiny-but-strong (tbs) 项目包括用于创建 OfficeOpenXML 文档(OpenDocument 和 OfficeOpenXML 格式)的OpenTBS工具
- SimpleExcel声称可以读写 Microsoft Excel XML / CSV / TSV / HTML / JSON / etc 格式
- 仅限 KoolGridxls 电子表格,还有 doc 和 pdf
- PHP_XLSXWriterOfficeOpenXML
- PHP_XLSXWriter_plusOfficeOpenXML,PHP_XLSXWriter 的分支
- 仅php_writeexcelxls(看起来它基于 PEAR SEW)
- 喷出OfficeOpenXML (xlsx) 和 CSV
- Slamdunk/php-excel(xls only) 看起来像是旧 PEAR Spreadsheet Writer 的更新版本
For Reading Excel
用于阅读 Excel
- php-spreadsheetreaderreads a variety of formats (.xls, .ods and .csv)
- PHP-ExcelReader(xls only)
- PHP_Excel_Reader(xls only)
- PHP_Excel_Reader2(xls only)
- XLS File ReaderCommercial and xls only
- SimpleXLSXFrom the description it reads xlsx files , though the author constantly refers to xls
- PHP Excel ExplorerCommercial and xls only
- Ilia Alshanetsky's Excel extensionnow on github(xls and xlsx, and requires commercial libXLcomponent)
- PHP's COM extension(requires a COM enabled spreadsheet program such as MS Excel or OpenOffice Calc running on the server)
- The Open Office alternative to COM (PUNO) (requires Open Office installed on the server with Java support enabled)
- Nuovo's spreadsheet-reader(csv, xls, xlsx, and ods)
- SimpleExcelClaims to read and write Microsoft Excel XML / CSV / TSV / HTML / JSON / etc formats
- PHPExcleReaderIs just a ZIP with an old version of PHPExcel
- Akeneo Labs Spreadsheet ParserOfficeOpenXML (.xlsx) and CSV files
- spoutOfficeOpenXML (xlsx) and CSV
- xhook's php-spreadsheetreaderClaims to do most formats
- php-spreadsheetreader读取多种格式(.xls、.ods 和 .csv)
- PHP-ExcelReader(仅限 xls)
- PHP_Excel_Reader(仅 xls)
- PHP_Excel_Reader2(仅 xls)
- XLS 文件阅读器商业版和仅 xls
- SimpleXLSX从描述中它读取的是 xlsx 文件,尽管作者经常提到 xls
- 仅限PHP Excel ExplorerCommercial 和 xls
- Ilia Alshanetsky 的Excel 扩展现在在github 上(xls 和 xlsx,需要商业libXL组件)
- PHP 的COM 扩展(需要在服务器上运行支持 COM 的电子表格程序,例如 MS Excel 或 OpenOffice Calc)
- COM ( PUNO)的 Open Office 替代方案(需要在启用 Java 支持的服务器上安装 Open Office)
- Nuovo 的电子表格阅读器(csv、xls、xlsx 和 ods)
- SimpleExcel声称可以读写 Microsoft Excel XML / CSV / TSV / HTML / JSON / etc 格式
- PHPExcleReader只是一个带有旧版本 PHPExcel 的 ZIP
- Akeneo Labs 电子表格解析器OfficeOpenXML (.xlsx) 和 CSV 文件
- 喷出OfficeOpenXML (xlsx) 和 CSV
- xhook 的 php-spreadsheetreader声称可以处理大多数格式
A new C++ Excel extension for PHP, though you'll need to build it yourself, and the docs are pretty sparse when it comes to trying to find out what functionality (I can't even find out from the site what formats it supports, or whether it reads or writes or both.... I'm guessing both) it offers is phpexcellibfrom SIMITGROUP.
一个新的 PHP C++ Excel 扩展,虽然你需要自己构建它,而且在试图找出什么功能时,文档非常稀少(我什至无法从网站上找到它支持的格式,或者它是否读或写或两者....我猜两者)它提供的是phpexcellib从SIMITGROUP。
All claim to be faster than PHPExcelfrom codeplexor from github, but (with the exception of COM, PUNO Ilia's wrapper around libXl and spout) they don't offer both reading and writing, or both xls and xlsx; may no longer be supported; and (while I haven't tested Ilia's extension) only COM and PUNO offers the same degree of control over the created workbook.
都声称比来自codeplex或来自github 的PHPExcel更快,但是(除了 COM,PUNO Ilia 围绕 libXl 和 spout 的包装器)它们不提供读取和写入,或 xls 和 xlsx;可能不再受支持;并且(虽然我没有测试 Ilia 的扩展)只有 COM 和 PUNO 对创建的工作簿提供相同程度的控制。