PHPackages                             phpoffice/phpspreadsheet - 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. phpoffice/phpspreadsheet

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

phpoffice/phpspreadsheet
========================

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

5.5.0(2mo ago)13.9k293.5M—1.4%3.6k[82 issues](https://github.com/PHPOffice/PhpSpreadsheet/issues)[19 PRs](https://github.com/PHPOffice/PhpSpreadsheet/pulls)20MITPHPPHP ^8.1CI passing

Since Aug 17Pushed 2w ago305 watchersCompare

[ Source](https://github.com/PHPOffice/PhpSpreadsheet)[ Packagist](https://packagist.org/packages/phpoffice/phpspreadsheet)[ Docs](https://github.com/PHPOffice/PhpSpreadsheet)[ RSS](/packages/phpoffice-phpspreadsheet/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (34)Versions (150)Used By (20)Security (22)

PhpSpreadsheet
==============

[](#phpspreadsheet)

[![Build Status](https://github.com/PHPOffice/PhpSpreadsheet/workflows/main/badge.svg)](https://github.com/PHPOffice/PhpSpreadsheet/actions)[![Code Coverage](https://camo.githubusercontent.com/122285b04317040c39b4ff0c3afd13e59ed78ac70c34851e2407fb1ee138328a/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f5048504f66666963652f50687053707265616473686565742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/PHPOffice/PhpSpreadsheet?branch=master)[![Total Downloads](https://camo.githubusercontent.com/3a320549c951c98924a7de48782f9ef428e3446569bde9986d3e01315ac41475/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5048504f66666963652f5068705370726561647368656574)](https://packagist.org/packages/phpoffice/phpspreadsheet)[![Latest Stable Version](https://camo.githubusercontent.com/8b8351e3041183c5877cfeb8a681a3280d883fb3405deae5755f91646f34ea91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f5048504f66666963652f5068705370726561647368656574)](https://packagist.org/packages/phpoffice/phpspreadsheet)[![License](https://camo.githubusercontent.com/0a00b88660da811faead14374ec69ed033b5e69c9fba631905027e34533a60de/68747470733a2f2f706f7365722e707567782e6f72672f7068706f66666963652f70687073707265616473686565742f6c6963656e7365)](https://packagist.org/packages/phpoffice/phpspreadsheet)[![Join the chat at https://gitter.im/PHPOffice/PhpSpreadsheet](https://camo.githubusercontent.com/2dd4d0f228a76b3dd73355d3fb9101cd32fb849421b528669a9a7bbec7d5a25a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4749545445522d6a6f696e253230636861742d677265656e2e737667)](https://gitter.im/PHPOffice/PhpSpreadsheet)

PhpSpreadsheet is a library written in pure PHP and offers a set of classes that allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc.

This is the master branch, and is maintained for security and bug fixes.

PHP Version Support
-------------------

[](#php-version-support)

LTS: For maintained branches, support for PHP versions will only be maintained for a period of six months beyond the [end of life](https://www.php.net/supported-versions) of that PHP version.

Currently the required PHP minimum version is PHP **8.1**, and we [will support that version](https://www.php.net/supported-versions.php) until 30th June 2026.

See the `composer.json` for other requirements.

Installation
------------

[](#installation)

See the [install instructions](https://phpspreadsheet.readthedocs.io/en/latest/#installation).

Documentation
-------------

[](#documentation)

Read more about it, including install instructions, in the [official documentation](https://phpspreadsheet.readthedocs.io). Or check out the [API documentation](https://phpoffice.github.io/PhpSpreadsheet).

Please ask your support questions on [StackOverflow](https://stackoverflow.com/questions/tagged/phpspreadsheet), or have a quick chat on [Gitter](https://gitter.im/PHPOffice/PhpSpreadsheet).

Patreon
-------

[](#patreon)

I am now running a [Patreon](https://www.patreon.com/MarkBaker) to support the work that I do on PhpSpreadsheet.

Supporters will receive access to articles about working with PhpSpreadsheet, and how to use some of its more advanced features.

Posts already available to Patreon supporters:

- The Dating Game
    - A look at how MS Excel (and PhpSpreadsheet) handle date and time values.
- Looping the Loop
    - Advice on Iterating through the rows and cells in a worksheet.

And for Patrons at levels actively using PhpSpreadsheet:

- Behind the Mask
    - A look at Number Format Masks.

The Next Article (currently Work in Progress):

- Formula for Success
    - How to debug formulae that don't produce the expected result.

My aim is to post at least one article each month, taking a detailed look at some feature of MS Excel and how to use that feature in PhpSpreadsheet, or on how to perform different activities in PhpSpreadsheet.

Planned posts for the future include topics like:

- Tables
- Structured References
- AutoFiltering
- Array Formulae
- Conditional Formatting
- Data Validation
- Value Binders
- Images
- Charts

After a period of six months exclusive to Patreon supporters, articles will be incorporated into the public documentation for the library.

PHPExcel vs PhpSpreadsheet ?
----------------------------

[](#phpexcel-vs-phpspreadsheet-)

PhpSpreadsheet is the next version of PHPExcel. It breaks compatibility to dramatically improve the code base quality (namespaces, PSR compliance, use of latest PHP language features, etc.).

Because all efforts have shifted to PhpSpreadsheet, PHPExcel will no longer be maintained. All contributions for PHPExcel, patches and new features, should target PhpSpreadsheet `master` branch.

Do you need to migrate? There is [an automated tool](/docs/topics/migration-from-PHPExcel.md) for that.

License
-------

[](#license)

PhpSpreadsheet is licensed under [MIT](https://github.com/PHPOffice/PhpSpreadsheet/blob/master/LICENSE).

###  Health Score

88

—

ExcellentBetter than 100% of packages

Maintenance91

Actively maintained with recent releases

Popularity92

Widely adopted with strong download metrics

Community70

Healthy contributor diversity

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 57.8% 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.

###  Release Activity

Cadence

Every ~25 days

Recently: every ~1 days

Total

123

Last Release

75d ago

Major Versions

3.10.2 → 5.4.02026-01-11

1.30.2 → 2.1.142026-01-11

2.4.3 → 3.10.32026-01-11

3.10.3 → 5.5.02026-03-01

1.30.x-dev → 3.10.x-dev2026-03-05

PHP version history (13 changes)1.0.0-betaPHP ^5.6|^7.0

1.9.0PHP ^7.1

1.13.0PHP ^7.2

1.15.0PHP ^7.2|^8.0

1.16.0PHP ^7.2||^8.0

1.18.0PHP ^7.2 || ^8.0

1.20.0PHP ^7.3 || ^8.0

1.26.0PHP ^7.4 || ^8.0

2.0.0PHP ^8.0

2.2.0PHP ^8.1

1.30.1PHP &gt;=7.4.0 &lt;8.5.0

2.1.13PHP &gt;=8.0.0 &lt;8.5.0

2.4.2PHP &gt;=8.1.0 &lt;8.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/792895a1976f2be3789d45a658de84d94a901d1137b4417b27840ccaa0dba2e3?d=identicon)[Progi1984](/maintainers/Progi1984)

![](https://www.gravatar.com/avatar/2b8457fa3227a7e8e38f0121f1fe254ec965133df93ae5ea8352c757adb98283?d=identicon)[PHPOffice](/maintainers/PHPOffice)

![](https://www.gravatar.com/avatar/7c94f0f19fd311bcb9dfc106b5c0c2f27cbcbff48649176366ac99630dd7fa62?d=identicon)[PowerKiKi](/maintainers/PowerKiKi)

---

Top Contributors

[![oleibman](https://avatars.githubusercontent.com/u/10341515?v=4)](https://github.com/oleibman "oleibman (2262 commits)")[![PowerKiKi](https://avatars.githubusercontent.com/u/72603?v=4)](https://github.com/PowerKiKi "PowerKiKi (602 commits)")[![MarkBaker](https://avatars.githubusercontent.com/u/770298?v=4)](https://github.com/MarkBaker "MarkBaker (518 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (136 commits)")[![Progi1984](https://avatars.githubusercontent.com/u/1533248?v=4)](https://github.com/Progi1984 "Progi1984 (106 commits)")[![RobinvanderVliet](https://avatars.githubusercontent.com/u/692029?v=4)](https://github.com/RobinvanderVliet "RobinvanderVliet (32 commits)")[![aswinkumar863](https://avatars.githubusercontent.com/u/32381261?v=4)](https://github.com/aswinkumar863 "aswinkumar863 (24 commits)")[![maartenba](https://avatars.githubusercontent.com/u/485230?v=4)](https://github.com/maartenba "maartenba (23 commits)")[![agopaul](https://avatars.githubusercontent.com/u/356427?v=4)](https://github.com/agopaul "agopaul (22 commits)")[![AkiraPenguin](https://avatars.githubusercontent.com/u/10262569?v=4)](https://github.com/AkiraPenguin "AkiraPenguin (16 commits)")[![kemo](https://avatars.githubusercontent.com/u/100160?v=4)](https://github.com/kemo "kemo (13 commits)")[![fox34](https://avatars.githubusercontent.com/u/18050078?v=4)](https://github.com/fox34 "fox34 (11 commits)")[![ndench](https://avatars.githubusercontent.com/u/2062388?v=4)](https://github.com/ndench "ndench (11 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (11 commits)")[![YoheiZuho](https://avatars.githubusercontent.com/u/26687568?v=4)](https://github.com/YoheiZuho "YoheiZuho (10 commits)")[![fdjohnston](https://avatars.githubusercontent.com/u/4827454?v=4)](https://github.com/fdjohnston "fdjohnston (10 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (8 commits)")[![frantzmiccoli](https://avatars.githubusercontent.com/u/2973447?v=4)](https://github.com/frantzmiccoli "frantzmiccoli (8 commits)")[![ccrims0n](https://avatars.githubusercontent.com/u/4971419?v=4)](https://github.com/ccrims0n "ccrims0n (8 commits)")[![rpg600](https://avatars.githubusercontent.com/u/956326?v=4)](https://github.com/rpg600 "rpg600 (8 commits)")

---

Tags

excelgnumerichacktoberfestlibreofficemsexcelodsofficephpphpexcelspreadsheetsylkxlsxlsxphpexcelxlsxlsxOpenXMLspreadsheetodsgnumeric

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpoffice-phpspreadsheet/health.svg)

```
[![Health](https://phpackages.com/badges/phpoffice-phpspreadsheet/health.svg)](https://phpackages.com/packages/phpoffice-phpspreadsheet)
```

PHPackages © 2026

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