qronicle/qexcel
Composer 安装命令:
composer require qronicle/qexcel
包简介
Fast reader modification of PHPExcel
README 文档
README
#QExcel
The Qronicle (or Quick - still haven't really decided) Excel library is an experimental Excel reader based on PHPExcel (http://phpexcel.codeplex.com/). It uses less resources by only looking at the actual content, ignoring styles etc.
This library should be helpful when importing excel files where the styling is not important. Keep in mind that it will only ever contain the Excel readers.
Progress
Basic functionality is all in place. The optimized Excel5, Excel2003XML, Excel2007 and CSV Readers are mostly ready. Everything is tied together by the QExcel class (that can be used as a replacement to PHPExcel's IO factory).
Up next is adding more documentation, example files (the test files I use now are not open for publication) and extending the index file with more sweetness to test out. If everything works I'll probably add the OO and other Readers from PHPExcel. I also need to check for updates on the PHPExcel front, should they have improved their readers.
Composer installation
composer require qronicle/qexcel
Getting started
// Always include the QExcel file // This will start the autoloader and you will probably use the QExcel class to start as well require_once('library/QExcel/QExcel.php'); // The workbook file $filename = 'files/test.xls'; // Load the file into a QExcel_Workbook object $workbook = QExcel::loadWorkbook($filename);
Performance
Tested with a file containing 2400 lines and 22 columns (mostly text and number fields). PHPExcel used setReadDataOnly as true.
Note that these are quickly made tests and that they are just an indication of the amount of memory and time that is won by ignoring the (for this library) unimportant data.
Excel2007 Reader
| PHPExcel | QExcel | Gain | |
|---|---|---|---|
| Memory usage | 158.76 MB | 8.87 MB | 5.6% (18 times less) |
| Duration | 18.35 seconds | 3.01 seconds | 16.4% (6 times faster) |
Excel5 Reader
| PHPExcel | QExcel | Gain | |
|---|---|---|---|
| Memory usage | 62.46 MB | 12.40 MB | 19.8% (5 times less) |
| Duration | 7.77 seconds | 2.86 seconds | 36.8% (3 times faster) |
Excel2003XML Reader
| PHPExcel | QExcel | Gain | |
|---|---|---|---|
| Memory usage | 172.29 MB | 6.08 MB | 3.5% (28 times less) |
| Duration | 13.67 seconds | 2.66 seconds | 36.8% (5 times faster) |
CSV Reader
| PHPExcel | QExcel | Gain | |
|---|---|---|---|
| Memory usage | 55.29 MB | 6.31 MB | 11.4% (9 times less) |
| Duration | 6.80 seconds | 0.42 seconds | 6.1% (16 times faster) |
qronicle/qexcel 适用场景与选型建议
qronicle/qexcel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.39k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2014 年 06 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「excel」 「reader」 「PHPExcel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 qronicle/qexcel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 qronicle/qexcel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 qronicle/qexcel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This Symfony bundle integrates PhpSpreadsheet into Symfony using Twig.
CakePHP excel generator
Fork of Maatwebsite for reasons of incompatibility with php >= 7.4 --- of Supercharged Excel exports in Laravel
PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine
Yii2 export extension
PHP Excel Library
统计信息
- 总下载量: 1.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2014-06-23