PHPackages                             rocky114/spreadsheet - 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. rocky114/spreadsheet

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

rocky114/spreadsheet
====================

PHP library to read and write spreadsheet files (CSV, XLSX)

v0.1.1(6y ago)138MITPHPPHP &gt;=7.1.0

Since Mar 30Pushed 4y ago1 watchersCompare

[ Source](https://github.com/rocky114/spreadsheet)[ Packagist](https://packagist.org/packages/rocky114/spreadsheet)[ Docs](https://github.com/rocky114/spreadsheet)[ RSS](/packages/rocky114-spreadsheet/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (3)Used By (0)

EXCEL
=====

[](#excel)

this is a PHP library to read and write spreadsheet files (CSV, XLSX), in a fast and scalable way.

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

[](#requirements)

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

Tips
----

[](#tips)

If you have any ideas, please contact me and I will try to achieve

Writer example
--------------

[](#writer-example)

```
include "./vendor/autoload.php";

$writer = \Rocky114\Excel\Writer\WriterFactory::createXLSXWriter();
$writer->setTempFolder('.');

$writer->addNewSheet('sheet1');

$type = [
    'A' => 'string',
    'B' => '#,##0'
];
$writer->addHeader(['name', 'id'], $type)->addRow(['xinzhu', 1234565])->addRow(['rocky', 21])->save();

```

Reader example
--------------

[](#reader-example)

```
include "./vendor/autoload.php";

$reader = \Rocky114\Spreadsheet\ReaderFactory::createReaderFromFile('./test.xlsx');

$data = [];
foreach ($reader->getSheetIterator() as $sheet) {
    foreach ($sheet->getRowIterator() as $row) {
        $data[] = $row;
    }
}

// or
$data = $reader->getSheet()->load();

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2238d ago

### Community

Maintainers

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

---

Top Contributors

[![rocky114](https://avatars.githubusercontent.com/u/13433110?v=4)](https://github.com/rocky114 "rocky114 (135 commits)")

---

Tags

csvcsv-exportcsv-importexcel-exportexcel-importphpphp7spreadsheetxlsxphpexcelxlsxcsvmemoryofficespreadsheetreadwritescale

### Embed Badge

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

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

###  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)
