A pure PHP library for reading and writing spreadsheet files like Excel and LibreOffice Calc.
PhpSpreadsheet is a pure PHP library that allows developers to read, write, and manipulate spreadsheet files programmatically. It supports various formats including Excel (XLSX, XLS), LibreOffice Calc (ODS), CSV, and HTML, enabling automation of spreadsheet-related tasks without requiring external software. The library provides a comprehensive API for creating dynamic reports, importing/exporting data, and performing calculations directly in PHP.
PHP developers who need to generate, parse, or modify spreadsheet files in their applications, such as those building reporting tools, data import/export features, or office automation systems.
Developers choose PhpSpreadsheet because it's a mature, feature-rich library written entirely in PHP with no external dependencies, making it easy to deploy and integrate. It offers extensive spreadsheet functionality comparable to proprietary tools while being open-source and actively maintained as the successor to the popular PHPExcel library.
A pure PHP library for reading and writing spreadsheet files
No external dependencies or extensions required, ensuring easy deployment and compatibility across PHP environments, as emphasized in the README.
Reads and writes Excel (XLSX, XLS), ODS, CSV, and HTML formats, providing versatility for various spreadsheet tasks without proprietary software.
Supports Excel-like formula calculation within PHP, enabling dynamic spreadsheet generation and data manipulation directly in code.
Allows programmatic application of cell formatting, borders, colors, and number formats for creating professionally styled spreadsheets.
As the successor to PHPExcel, it introduces breaking changes, requiring use of an automated migration tool and potential code updates, as noted in the README.
The pure PHP implementation can be slower and more memory-intensive compared to libraries with native extensions, especially for processing very large spreadsheets.
In-depth documentation and guides for advanced features are exclusive to Patreon supporters for six months, delaying free access, as indicated in the README.
PHPSpreadsheet is an open-source alternative to the following products:
Microsoft Excel is a spreadsheet application used for data organization, calculation, analysis, and visualization through tables, charts, and formulas.
LibreOffice Calc is the spreadsheet component of LibreOffice that provides data analysis, calculation, charting, and spreadsheet functionality similar to Microsoft Excel.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.