PHPackages                             alexandrainst/php-xlsx-fast-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. alexandrainst/php-xlsx-fast-editor

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

alexandrainst/php-xlsx-fast-editor
==================================

PHP library to make basic but fast read &amp; write operations on existing Excel workbooks

2.6.0(4mo ago)1314.5k↓51.5%2LGPL-3.0-or-laterPHPPHP &gt;=8.0CI passing

Since Aug 19Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/alexandrainst/php-xlsx-fast-editor)[ Packagist](https://packagist.org/packages/alexandrainst/php-xlsx-fast-editor)[ Docs](https://github.com/alexandrainst/php-xlsx-fast-editor)[ RSS](/packages/alexandrainst-php-xlsx-fast-editor/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (6)Versions (24)Used By (0)

php-xlsx-fast-editor
====================

[](#php-xlsx-fast-editor)

PHP library to make basic but fast read &amp; write operations on existing Excel workbooks.

It handles XLSX/XLSM documents (Microsoft Excel 2007+, Office Open XML Workbook) using fast and simple low-level ZIP &amp; XML manipulations, without requiring any library dependency, while minimising unintended side-effects.

Rationale
---------

[](#rationale)

If you need advanced manipulation of Excel documents such as working with styles, check the [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) library (previously [PHPExcel](https://github.com/PHPOffice/PHPExcel/)), but for simply reading &amp; writing basic values from existing Excel workbooks, `PhpSpreadsheet` is over an order of magnitude too slow, and has the risk of breaking some unsupported Excel features such as some notes and charts.

There are also libraries to create new Excel documents from scratch, or for just reading some values, but not any obvious one for editing.

`php-xlsx-fast-editor` addresses the need of quickly reading &amp; writing &amp; editing existing Excel documents, while reducing the risk of breaking anything.

Note that to create a new document, you can just provide a blank or template Excel document as input.

Use
---

[](#use)

Via [Composer](https://packagist.org/packages/alexandrainst/php-xlsx-fast-editor):

```
composer require alexandrainst/php-xlsx-fast-editor
```

or manually:

```
require 'vendor/alexandrainst/XlsxFastEditor/autoload.php';
```

Examples
--------

[](#examples)

```
