webnuvola / excel-reader
Read spreadsheet files (CSV, XLSX and ODS) using box/spout and return data in array format
Installs: 1 310
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.4|^8.0
- box/spout: ^2.7|^3.0
- cocur/slugify: ^4.0
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Read spreadsheet files (CSV, XLSX and ODS) using box/spout and return data in array format.
Installation
You can install the package via composer:
composer require webnuvola/excel-reader
Usage
$excel = \Webnuvola\ExcelReader\ExcelReader::createFromPath(__DIR__.'/excel-file.xlsx') ->read(); $excel = \Webnuvola\ExcelReader\ExcelReader::createFromString($content, 'xlsx') ->read();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.