PHPackages                             openspout/openspout - 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. openspout/openspout

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

openspout/openspout
===================

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

v5.6.0(1mo ago)1.2k57.6M—0.9%138[8 issues](https://github.com/openspout/openspout/issues)[8 PRs](https://github.com/openspout/openspout/pulls)20MITPHPPHP ~8.4.0 || ~8.5.0CI passing

Since Mar 2Pushed today18 watchersCompare

[ Source](https://github.com/openspout/openspout)[ Packagist](https://packagist.org/packages/openspout/openspout)[ Docs](https://github.com/openspout/openspout)[ Fund](https://paypal.me/filippotessarotto)[ GitHub Sponsors](https://github.com/Slamdunk)[ RSS](/packages/openspout-openspout/feed)WikiDiscussions 5.x Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (85)Used By (20)

OpenSpout
=========

[](#openspout)

[![Latest Stable Version](https://camo.githubusercontent.com/b4e9142581d61183188531eb0f58b2744d214dfab0c09f8007d31bc2d078d509/68747470733a2f2f706f7365722e707567782e6f72672f6f70656e73706f75742f6f70656e73706f75742f762f737461626c65)](https://packagist.org/packages/openspout/openspout)[![Total Downloads](https://camo.githubusercontent.com/60fddfee505e1c29d7dabaa31fc8842a5d9483218c1a516ededd572ca2ddb09d/68747470733a2f2f706f7365722e707567782e6f72672f6f70656e73706f75742f6f70656e73706f75742f646f776e6c6f616473)](https://packagist.org/packages/openspout/openspout)[![Build Status](https://github.com/openspout/openspout/actions/workflows/ci.yml/badge.svg)](https://github.com/openspout/openspout/actions/workflows/ci.yml)[![Infection MSI](https://camo.githubusercontent.com/6c31313fd57fc5fdcbfa79945d057c8be198d429c179273beee4b174b155ef6d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466f70656e73706f75742532466f70656e73706f7574253246342e78)](https://dashboard.stryker-mutator.io/reports/github.com/openspout/openspout/4.x)

OpenSpout is a community driven fork of `box/spout`, a PHP library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way. Unlike other file readers or writers, it is capable of processing very large files, while keeping the memory usage really low (less than 3MB).

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

[](#documentation)

Documentation can be found at [`docs/`](docs).

Upgrade from `box/spout:v3` to `openspout/openspout:v3`
-------------------------------------------------------

[](#upgrade-from-boxspoutv3-to-openspoutopenspoutv3)

1. Replace `box/spout` with `openspout/openspout` in your `composer.json`
2. Replace `Box\Spout` with `OpenSpout` in your code

Upgrade guide
-------------

[](#upgrade-guide)

Version 4 introduced new functionality but also some breaking changes. If you want to upgrade your OpenSpout codebase please consult the [Upgrade guide](UPGRADE.md).

Copyright and License
---------------------

[](#copyright-and-license)

This is a fork of Box's Spout library:

Code until and directly descending from commit [`cc42c1d`](https://github.com/openspout/openspout/commit/cc42c1d29fc5d29f07caeace99bd29dbb6d7c2f8)is copyright of *Box, Inc.* and licensed under the Apache License, Version 2.0:

Code created, edited and released after the commit mentioned above is copyright of *openspout* Github organization and licensed under MIT License.

###  Health Score

79

—

ExcellentBetter than 100% of packages

Maintenance95

Actively maintained with recent releases

Popularity76

Solid adoption and visibility

Community50

Growing community involvement

Maturity82

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~18 days

Recently: every ~10 days

Total

83

Last Release

54d ago

Major Versions

v3.7.3 → v4.0.02022-03-24

v3.7.4 → v4.2.12022-03-31

4.x-dev → v5.0.02025-12-01

PHP version history (10 changes)v3.4.0PHP ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0

v4.0.0PHP ~8.0.0 || ~8.1.0

v4.8.0PHP ~8.0.0 || ~8.1.0 || ~8.2.0

v4.14.0PHP ~8.1.0 || ~8.2.0

v4.21.0PHP ~8.2.0 || ~8.3.0

v4.22.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

v4.26.0PHP ~8.2.0 || ~8.3.0 || ~8.4.0

v4.29.0PHP ~8.3.0 || ~8.4.0

v4.31.0PHP ~8.3.0 || ~8.4.0 || ~8.5.0

v5.4.0PHP ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50348?v=4)[Sahn Lam](/maintainers/Slam)[@slam](https://github.com/slam)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (295 commits)")[![adrilo](https://avatars.githubusercontent.com/u/7086917?v=4)](https://github.com/adrilo "adrilo (282 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (234 commits)")[![aphofstede](https://avatars.githubusercontent.com/u/701218?v=4)](https://github.com/aphofstede "aphofstede (22 commits)")[![madflow](https://avatars.githubusercontent.com/u/183248?v=4)](https://github.com/madflow "madflow (16 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (8 commits)")[![guss77](https://avatars.githubusercontent.com/u/381782?v=4)](https://github.com/guss77 "guss77 (8 commits)")[![alamirault](https://avatars.githubusercontent.com/u/9253091?v=4)](https://github.com/alamirault "alamirault (7 commits)")[![bionda740](https://avatars.githubusercontent.com/u/71380556?v=4)](https://github.com/bionda740 "bionda740 (5 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (5 commits)")[![sfichera](https://avatars.githubusercontent.com/u/3146077?v=4)](https://github.com/sfichera "sfichera (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![eisberg](https://avatars.githubusercontent.com/u/9015003?v=4)](https://github.com/eisberg "eisberg (4 commits)")[![sutrik](https://avatars.githubusercontent.com/u/22319963?v=4)](https://github.com/sutrik "sutrik (4 commits)")[![yiranzai](https://avatars.githubusercontent.com/u/20548510?v=4)](https://github.com/yiranzai "yiranzai (3 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (3 commits)")[![freshleafmedia](https://avatars.githubusercontent.com/u/10062339?v=4)](https://github.com/freshleafmedia "freshleafmedia (3 commits)")[![jmsche](https://avatars.githubusercontent.com/u/3929498?v=4)](https://github.com/jmsche "jmsche (3 commits)")[![jverelst](https://avatars.githubusercontent.com/u/1706949?v=4)](https://github.com/jverelst "jverelst (3 commits)")[![jwhulette](https://avatars.githubusercontent.com/u/4930051?v=4)](https://github.com/jwhulette "jwhulette (3 commits)")

---

Tags

csvodsphpspreadsheetxlsxstreamphpexcelxlsxcsvmemoryodfofficeOOXMLspreadsheetodsopenreadwritescale

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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