Why use php-ext-xlswriter
xlswriter is a PHP C extensions can be used to write multiple worksheets in Excel 2007+ XLSX file text, numbers, formulas and hyperlinks.
It supports the following features:
- 100% compatible Excel XLSX files
- Complete Excel format
- Merge Cells
- AutoFilter
- chart
- Data validation and drop-down list
- Worksheet PNG / JPEG images
- For writing large files memory optimization mode
- Applicable to Linux, FreeBSD, OpenBSD, OS X, Windows
- Compiled for 32-bit and 64-bit
- FreeBSD license
- The only dependence is zlib
update content:
repair
- Cycling export multiple files mistakes
New features
- Read xlsx file
- New chart types (donut, area charts, histograms)
- Cell border styles (style thin border, medium border style, border style dotted line, dashed border style, border style thick, bilateral style, medium dashed border style, .......)
Benchmarks
test environment:
- Macbook Pro 13 inch
- Intel Core i5
- 16GB 2133MHz LPDDR3 Memory
- 128GB SSD Storage.
Export
Two kinds of memory model, the data line derived 100W, single row 27, each cell 19 Chinese characters
- Conventional modes: time-consuming 29S, memory footprint 2083MB;
- Fixed memory model: Processed 52S, memory usage <1MB;
Read
100W read line data, each row 1, cell data is int
- The full amount of reading: time-consuming 3S, memory footprint 558MB;
- Cursor read: time-consuming 2.8S, memory footprint <1MB;