PHPackages                             yfwserver/xlsxreader - 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. yfwserver/xlsxreader

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

yfwserver/xlsxreader
====================

reads xlsx file contents: from https://github.com/gneustaetter/XLSXReader.git

1.0.2(9y ago)06.2k↓50%PHPPHP &gt;=5.3.0

Since Nov 24Pushed 9y agoCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

XLSXReader
==========

[](#xlsxreader)

What it does
------------

[](#what-it-does)

XLSXReader is a small PHP class for reading data from Microsoft Excel XLSX (OpenXML) files. There are some much more comprehensive Excel libraries for PHP, but I created this because I was looking for a library that made it as easy as possible to:

1. Open an Excel file
2. Get a list of the sheets (names and sheetIds)
3. Get the data out from a sheet into an array

XLSXReader requires the ZIP extension.

Thanks to Sergey Schuchkin for his [SimpleXLSX](http://www.phpclasses.org/package/6279-PHP-Parse-and-retrieve-data-from-Excel-XLS-files.html) library that served as the inspiration for XLSXReader. While most of it has been rewritten, some of his code still remains.

Usage
-----

[](#usage)

Open an Excel file:

```
require('XLSXReader.php');
$xlsx = new XLSXReader('sample.xlsx');
```

Get a list of the sheets:

```
$sheets = $xlsx->getSheetNames();
```

Get the data from a sheet:

```
$data = $xlsx->getSheetData('Sales');
```

What it doesn't do
------------------

[](#what-it-doesnt-do)

There are many things XLSXReader does not aim to do:

1. Handle sheets with a large amount of data - XLSXReader uses SimpleXML to read the sheet data, so the entire XML file is read into memory when accessing a sheet.
2. Extract formatting, formulas, comments, headers, footers, properties, or charts
3. Create or edit Excel files

If you need those capabilities, I would take a look at [PHP-Excel](http://phpexcel.codeplex.com/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

3462d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23718346?v=4)[yfwserver](/maintainers/yfwserver)[@yfwserver](https://github.com/yfwserver)

---

Top Contributors

[![gneustaetter](https://avatars.githubusercontent.com/u/809174?v=4)](https://github.com/gneustaetter "gneustaetter (3 commits)")

---

Tags

phpexcelxlsxlsxOpenXMLspreadsheet

### Embed Badge

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

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

PHPackages © 2026

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