Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/spaghettisolutions/xlsx-parser

Very simple to implement xlsx parser to extract data from spreadsheets for php 8.1+
https://github.com/spaghettisolutions/xlsx-parser

excel excel-parser libreoffice-calc parser php php8 spreadsheet spreadsheet-parser xlsx xlsx-parser

Last synced: 2 months ago
JSON representation

Very simple to implement xlsx parser to extract data from spreadsheets for php 8.1+

Awesome Lists containing this project

README

        




XLSX Parser

Very simple to implement xlsx parser to extract data from spreadsheets for php 8.1+

What is it?
---
**XLSXParser** is blazingly fast xlsx parser for **php 8.1+**. It is made as a simple tool to get job done. No fancy options of any kind
and no need for any extra libraries other than need for `zip` and `xmlreader` php extensions.

[![Test Coverage](https://api.codeclimate.com/v1/badges/70a54d59d6b335ff303c/test_coverage)](https://codeclimate.com/github/spaghettisolutions/xlsx-parser/test_coverage)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/spaghettisolutions/xlsx-parser/badges/quality-score.png?b=spaghetti)](https://scrutinizer-ci.com/g/spaghettisolutions/xlsx-parser/?branch=spaghetti)
[![Build Status](https://scrutinizer-ci.com/g/spaghettisolutions/xlsx-parser/badges/build.png?b=spaghetti)](https://scrutinizer-ci.com/g/spaghettisolutions/xlsx-parser/build-status/spaghetti)

---
* Initialize class.
* Open workbook.
* Choose worksheet.
* And iterate through receiving each row as an array.

---
Installation
---
The recommended way to install is via Composer:

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

```php
use Spaghetti\XLSXParser;

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

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

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