PHPackages                             thoroc/php\_writeexcel - 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. thoroc/php\_writeexcel

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

thoroc/php\_writeexcel
======================

Powerful library to write excel files

1411.9k15[3 issues](https://github.com/thoroc/php_writeexcel/issues)PHP

Since Mar 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/thoroc/php_writeexcel)[ Packagist](https://packagist.org/packages/thoroc/php_writeexcel)[ RSS](/packages/thoroc-php-writeexcel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

php\_writeexcel
===============

[](#php_writeexcel)

PHP port of John McNamara's Spreadsheet::WriteExcel by Johann Hanne, with some tweaks by Thomas Roche ([https://github.com/thoroc/php\_writeexcel](https://github.com/thoroc/php_writeexcel)), and forked by Craig Manley adding more tweaks and some added drop-in compatibility with PEAR's Spreadsheet\_Excel\_Writer.

Dependencies
============

[](#dependencies)

To use this library, please install [php\_ole](https://github.com/thoroc/php_ole) which allow to write big Excel files (larger than 7MB).

Example for your `composer.json` file:

```
{
    "minimum-stability": "dev",
    "repositories": [
      {
        "type": "vcs",
        "url": "https://github.com/thoroc/php_ole"
      },
      {
        "type": "vcs",
        "url": "https://github.com/thoroc/php_writeexcel"
      }
    ],
    "require": {
        "thoroc/php_ole": "master",
        "thoroc/php_writeexcel": "master"
    }
}

```

Perfomance comparison
=====================

[](#perfomance-comparison)

Update by Craig Manley, 2015-12-06: Writing a table of 8 fields and 950 rows to an Excel file resulted in these average elapsed times:

```
PHPExcel: 7.417
PEAR Spreadsheet_Excel_Writer: 1.078
php_writeexcel: 2.065

```

So clearly, PEAR's Spreadsheet\_Excel\_Writer is almost twice as fast. PHPExcel is more modern, but by far the slowest and consumes huge amounts of memory, which is the only reason I tried with this library, updating it slightly in the process.

Original Documentation
======================

[](#original-documentation)

- [README](doc/README)
- [LICENSE](doc/LICENSE)
- [FAQ](doc/FAQ)
- [TODO](doc/TODO)
- [CONTRIBUTION](doc/THANKS)
- [CHANGELGO](doc/CHANGELOG)

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5257ae78f3f46ddfaf8e4c44cb839ac7d767509f83e4f1d48f9c89dd81dcc063?d=identicon)[thoroc](/maintainers/thoroc)

---

Top Contributors

[![thoroc](https://avatars.githubusercontent.com/u/2297889?v=4)](https://github.com/thoroc "thoroc (17 commits)")[![Wilkins](https://avatars.githubusercontent.com/u/478570?v=4)](https://github.com/Wilkins "Wilkins (13 commits)")[![bursonic](https://avatars.githubusercontent.com/u/1857165?v=4)](https://github.com/bursonic "bursonic (2 commits)")[![arteq](https://avatars.githubusercontent.com/u/432634?v=4)](https://github.com/arteq "arteq (1 commits)")

---

Tags

excelphp

### Embed Badge

![Health badge](/badges/thoroc-php-writeexcel/health.svg)

```
[![Health](https://phpackages.com/badges/thoroc-php-writeexcel/health.svg)](https://phpackages.com/packages/thoroc-php-writeexcel)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k293.5M1.2k](/packages/phpoffice-phpspreadsheet)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M128](/packages/openspout-openspout)[keboola/csv

Keboola CSV reader and writer

1451.8M21](/packages/keboola-csv)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
