PHPackages                             spaghetti/xlsx-parser - 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. spaghetti/xlsx-parser

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

spaghetti/xlsx-parser
=====================

A blazingly fast XLSX parser for PHP 8.1+ that extracts data from spreadsheets with minimal dependencies

1.2.15(1y ago)0390MITPHPPHP &gt;=8.1.0

Since May 24Pushed 1y agoCompare

[ Source](https://github.com/vairogs/spaghetti-xlsx-parser)[ Packagist](https://packagist.org/packages/spaghetti/xlsx-parser)[ Docs](https://github.com/vairogs/vairogs)[ RSS](/packages/spaghetti-xlsx-parser/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Spaghetti: XLSX Parser
======================

[](#spaghetti-xlsx-parser)

A blazingly fast XLSX parser for PHP 8.1+ that extracts data from spreadsheets with minimal dependencies.

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

[](#installation)

Install the package via Composer:

```
composer require spaghetti/xlsx-parser
```

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

[](#requirements)

- PHP 8.1 or higher
- PHP extensions: `zip` and `xmlreader`

Usage
-----

[](#usage)

```
use Spaghetti\XLSXParser;

$workbook = (new XLSXParser())->open('workbook.xlsx');

foreach ($workbook->getRows($workbook->getIndex('worksheet')) as $key => $values) {
    var_dump($key, $values);
}
```

Features
--------

[](#features)

This package provides a simple and efficient way to parse XLSX files:

1. Initialize the XLSXParser class
2. Open a workbook
3. Choose a worksheet
4. Iterate through rows, receiving each row as an array

For a complete list of all functions available in this package, see [Features](docs/features.md).

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

Package History
---------------

[](#package-history)

**Note:** This package was originally developed as "spaghetti/xlsx-parser" by simpletoimplement. Vairogs is the new owner who has been granted permission by the original owner to take over the project.

About Vairogs
-------------

[](#about-vairogs)

This package is part of the [vairogs/vairogs](https://github.com/vairogs/vairogs) project - a comprehensive PHP library and Symfony bundle that provides a collection of utilities, components, and integrations for Symfony applications.

The main project includes:

- Various utility functions and components
- Doctrine ORM tools and extensions
- API Platform integrations
- Symfony bundle for easy configuration
- And much more

If you find this XLSX Parser component useful, you might want to check out the full Vairogs project for additional tools and utilities that can enhance your Symfony application development.

To install the complete package:

```
composer require vairogs/vairogs
```

---

[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://vshymanskyy.github.io/StandWithUkraine)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance47

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

394d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38725938?v=4)[Dāvis Zālītis](/maintainers/k0d3r1s)[@k0d3r1s](https://github.com/k0d3r1s)

---

Top Contributors

[![k0d3r1s](https://avatars.githubusercontent.com/u/38725938?v=4)](https://github.com/k0d3r1s "k0d3r1s (1 commits)")

---

Tags

phpparserlibraryexcelxlsxexcel-parservairogsxlsx-parser

### Embed Badge

![Health badge](/badges/spaghetti-xlsx-parser/health.svg)

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

###  Alternatives

[mk-j/php_xlsxwriter

PHP Library to write XLSX files

1.9k8.5M30](/packages/mk-j-php-xlsxwriter)[shuchkin/simplexlsx

Parse and retrieve data from Excel XLSx files. MS Excel 2007 workbooks PHP reader.

1.8k4.0M26](/packages/shuchkin-simplexlsx)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet and CSV Reader in PHP

106693.8k9](/packages/avadim-fast-excel-reader)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

3021.3M9](/packages/avadim-fast-excel-writer)[avadim/fast-excel-templator

Lightweight and very fast Excel Spreadsheet generator from XLSX-templates in PHP

20124.5k](/packages/avadim-fast-excel-templator)[maksimovic/php-xlsx-writer

PHP Library to write XLSX files

1451.3k](/packages/maksimovic-php-xlsx-writer)

PHPackages © 2026

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