weller-it / php_writeexcel
一个强大的库,用于写入Excel文件
dev-master
2020-07-12 22:26 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-13 07:24:51 UTC
README
PHP版本的John McNamara的Spreadsheet::WriteExcel,由Johann Hanne移植,Thomas Roche(https://github.com/thoroc/php_writeexcel)进行了一些调整,并由Craig Manley分支,增加了更多调整和一些与PEAR的Spreadsheet_Excel_Writer的兼容性。
依赖项
要使用此库,请安装php_ole,它允许写入大于7MB的大Excel文件。
你的composer.json文件示例
{
"minimum-stability": "dev",
"require": {
"Weller-IT/php_ole": "master",
"Weller-IT/php_writeexcel": "master",
}
}
性能比较
Craig Manley更新,2015-12-06:将一个包含8个字段和950行的表格写入Excel文件,平均耗时如下
PHPExcel: 7.417
PEAR Spreadsheet_Excel_Writer: 1.078
php_writeexcel: 2.065
很明显,PEAR的Spreadsheet_Excel_Writer快了近一倍。PHPExcel更现代,但速度最慢,消耗了大量的内存,这正是我尝试使用此库的原因,并在过程中对其进行了轻微的更新。