PHPackages                             conghau/spout - 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. conghau/spout

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

conghau/spout
=============

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

v2.7.3(8y ago)01.2kApache-2.0PHPPHP &gt;=5.4.0

Since Jan 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/conghau/spout)[ Packagist](https://packagist.org/packages/conghau/spout)[ Docs](https://www.github.com/box/spout)[ RSS](/packages/conghau-spout/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (35)Used By (0)

> Currently spout not support write formula function to xls file, so i do folk and update some code for support write formula code, tag `dev-master / 2.8.x-dev`

Spout
=====

[](#spout)

[![Latest Stable Version](https://camo.githubusercontent.com/75b9654bf2f2833cea180490b72f597c1b17f88391085da11328d9ae3431a918/68747470733a2f2f706f7365722e707567782e6f72672f626f782f73706f75742f762f737461626c65)](https://packagist.org/packages/box/spout)[![Project Status](https://camo.githubusercontent.com/5b5a2250da48f45495a817a4bcdabb5d101fff298acebe00a55a52815b7119ed/687474703a2f2f6f70656e736f757263652e626f782e636f6d2f6261646765732f6163746976652e737667)](http://opensource.box.com/badges)[![Build Status](https://camo.githubusercontent.com/47d6f64a1e3df553a95da81a2a1d2c0c8eecf904211f1b429bdffab978a7c2ed/68747470733a2f2f7472617669732d63692e6f72672f626f782f73706f75742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/box/spout)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/27c3ad2bdb999d93f8ddf90af3714a02a40b787fe13da865ed7ac668af37a84f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f782f73706f75742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/box/spout/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/bd665151a363140fa1439bba4a956f8ae9bee52d3881bbc562b859b3b55a4d42/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f626f782f73706f75742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/box/spout/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/7b134b5eba7c7ab4518b314ced0f62e2d61b5137e3d1fbc52004751a84e74848/68747470733a2f2f706f7365722e707567782e6f72672f626f782f73706f75742f646f776e6c6f616473)](https://packagist.org/packages/box/spout)

Spout is a PHP library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way. Contrary to other file readers or writers, it is capable of processing very large files while keeping the memory usage really low (less than 3MB).

Join the community and come discuss about Spout: [![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/box/spout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

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

[](#documentation)

Full documentation can be found at .

Requirements
------------

[](#requirements)

- PHP version 5.4.0 or higher
- PHP extension `php_zip` enabled
- PHP extension `php_xmlreader` enabled

Running tests
-------------

[](#running-tests)

On the `master` branch, only unit and functional tests are included. The performance tests require very large files and have been excluded. If you just want to check that everything is working as expected, executing the tests of the `master` branch is enough.

If you want to run performance tests, you will need to checkout the `perf-tests` branch. Multiple test suites can then be run, depending on the expected output:

- `phpunit` - runs the whole test suite (unit + functional + performance tests)
- `phpunit --exclude-group perf-tests` - only runs the unit and functional tests
- `phpunit --group perf-tests` - only runs the performance tests

For information, the performance tests take about 30 minutes to run (processing 1 million rows files is not a quick thing).

> Performance tests status: [![Build Status](https://camo.githubusercontent.com/15d28ee4eb26a17fb79cc91599e6cba5559ac0cbea4ca5a71e133c2da07379da/68747470733a2f2f7472617669732d63692e6f72672f626f782f73706f75742e7376673f6272616e63683d706572662d7465737473)](https://travis-ci.org/box/spout)

Support
-------

[](#support)

You can ask questions, submit new features ideas or discuss about Spout in the chat room:
[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/box/spout?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

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

[](#copyright-and-license)

Copyright 2017 Box, Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 84.1% 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 ~32 days

Recently: every ~95 days

Total

31

Last Release

3152d ago

Major Versions

v1.1.0 → v2.0.02015-07-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2837c471c6cb4630f54fb0b7dd90ab8f1ad6ab32ae4f76ce25705e7d5609220?d=identicon)[conghau](/maintainers/conghau)

---

Top Contributors

[![adrilo](https://avatars.githubusercontent.com/u/7086917?v=4)](https://github.com/adrilo "adrilo (180 commits)")[![madflow](https://avatars.githubusercontent.com/u/183248?v=4)](https://github.com/madflow "madflow (10 commits)")[![sfichera](https://avatars.githubusercontent.com/u/3146077?v=4)](https://github.com/sfichera "sfichera (4 commits)")[![conghau](https://avatars.githubusercontent.com/u/2627147?v=4)](https://github.com/conghau "conghau (3 commits)")[![KiNgMaR](https://avatars.githubusercontent.com/u/438358?v=4)](https://github.com/KiNgMaR "KiNgMaR (2 commits)")[![Lewiscowles1986](https://avatars.githubusercontent.com/u/2605791?v=4)](https://github.com/Lewiscowles1986 "Lewiscowles1986 (2 commits)")[![lichunqiang](https://avatars.githubusercontent.com/u/2433916?v=4)](https://github.com/lichunqiang "lichunqiang (1 commits)")[![nimmneun](https://avatars.githubusercontent.com/u/5374300?v=4)](https://github.com/nimmneun "nimmneun (1 commits)")[![philipbrown](https://avatars.githubusercontent.com/u/1579059?v=4)](https://github.com/philipbrown "philipbrown (1 commits)")[![rlukasz](https://avatars.githubusercontent.com/u/10188984?v=4)](https://github.com/rlukasz "rlukasz (1 commits)")[![someson](https://avatars.githubusercontent.com/u/3097223?v=4)](https://github.com/someson "someson (1 commits)")[![stianlik](https://avatars.githubusercontent.com/u/410251?v=4)](https://github.com/stianlik "stianlik (1 commits)")[![WebsourceCz](https://avatars.githubusercontent.com/u/676930?v=4)](https://github.com/WebsourceCz "WebsourceCz (1 commits)")[![welcoMattic](https://avatars.githubusercontent.com/u/773875?v=4)](https://github.com/welcoMattic "welcoMattic (1 commits)")[![camuthig](https://avatars.githubusercontent.com/u/5178217?v=4)](https://github.com/camuthig "camuthig (1 commits)")[![eusonlito](https://avatars.githubusercontent.com/u/644551?v=4)](https://github.com/eusonlito "eusonlito (1 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")[![glukkkk](https://avatars.githubusercontent.com/u/4921422?v=4)](https://github.com/glukkkk "glukkkk (1 commits)")[![jtreminio](https://avatars.githubusercontent.com/u/589398?v=4)](https://github.com/jtreminio "jtreminio (1 commits)")

---

Tags

streamphpexcelxlsxcsvmemoryodfofficeOOXMLspreadsheetodsopenreadwritescale

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[openspout/openspout

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

1.1k57.6M131](/packages/openspout-openspout)

PHPackages © 2026

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