Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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+
- Host: GitHub
- URL: https://github.com/spaghettisolutions/xlsx-parser
- Owner: spaghettisolutions
- License: mit
- Created: 2022-12-01T19:01:12.000Z (about 2 years ago)
- Default Branch: spaghetti
- Last Pushed: 2024-03-19T10:27:04.000Z (10 months ago)
- Last Synced: 2024-10-27T21:15:31.778Z (3 months ago)
- Topics: excel, excel-parser, libreoffice-calc, parser, php, php8, spreadsheet, spreadsheet-parser, xlsx, xlsx-parser
- Language: PHP
- Homepage:
- Size: 478 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
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.[![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)