PHP C Extension

Stop Letting Excel
Slow Down Your PHP

xlswriter is a high-performance PHP C extension for reading and writing Excel 2007+ XLSX files — built for speed, built for scale.

export.php
0
Rows exported per second
0
Max rows supported
0
Minimum PHP version

Up and running
in one command

Install via PECL, Composer, or compile from source. Works on Linux, macOS, and Windows.

terminal
$ pecl install xlswriter

Everything you need
for Excel at scale

Blazing Fast Export

Written in C, xlswriter streams data directly to disk with near-zero memory overhead. Export millions of rows without breaking a sweat.

🏭

CSV Factory

Merge fragmented data from multiple sources into a single, clean spreadsheet. Ecosystem tools to slice, filter, and reshape your data pipeline.

📖

High-Performance Reading

Read large XLSX files with a cursor-based API that keeps memory usage constant regardless of file size. Process row-by-row or in batches.

Numbers that
speak for themselves

MacBook Pro · 2.9GHz i9 · 32GB RAM · PHP 7.4

Export Performance

Normal mode · 1M rows ~19s
Constant memory mode · 1M rows ~26s

Import Performance

Normal mode · 1M rows ~14s
Cursor mode · 1M rows ~12s
Performance benchmark chart

Built by the community

xlswriter is open source and powered by contributors around the world.