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: 13 days ago
JSON representation
Very simple to implement xlsx parser to extract data from spreadsheets for php 8.1+
- Host: GitHub
- URL: https://github.com/spaghettisolutions/xlsx-parser
- Owner: spaghettisolutions
- License: mit
- Created: 2022-12-01T19:01:12.000Z (over 2 years ago)
- Default Branch: spaghetti
- Last Pushed: 2024-03-19T10:27:04.000Z (about 1 year ago)
- Last Synced: 2025-03-29T18:41:38.268Z (about 1 month ago)
- Topics: excel, excel-parser, libreoffice-calc, parser, php, php8, spreadsheet, spreadsheet-parser, xlsx, xlsx-parser
- Language: PHP
- Homepage:
- Size: 478 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
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.[](https://codeclimate.com/github/spaghettisolutions/xlsx-parser/test_coverage)
[](https://scrutinizer-ci.com/g/spaghettisolutions/xlsx-parser/?branch=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);
}
```---
[](https://vshymanskyy.github.io/StandWithUkraine)