collei / exceller
A simple wrapper for the PHPOffice/PHPSpreadsheet package. Read excel files with ease.
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/collei/exceller
Requires
- php: >=7.2
- collei/conf: ^0.1.0
- collei/lowcache: ^0.1.0
- phpoffice/phpspreadsheet: ^1.17
Requires (Dev)
- phpunit/phpunit: ^9.6
README
Just a wrapper for the PHPOffice/PHPSpreadsheet package. Read excel files with ease.
Requirements
- PHP 7.2 or newer
- PHPOffice/PHPSpreadsheet 1.17.0 or newer
Current Features
- Reads excel sheets into arrays;
- Imports excel sheets with user-defined importer classes;
- Multiple sheet imports with support for skip missing sheets, conditional importing, grouped rows;
- Localized event handling on importers themselves;
- Shorthand helpers for importing;
To be added
- Built-in integrated cache system (requires [collei/lowcache])
Testing
- Unpack the
test.zipat the project's base folder; - Navigate into the
testfolder.
Unit Tests
- Run
test-unit.cmd(for Windows) ortest-unit.sh(Linux distros) and see the results.
Find them all under test/unit, with the .xlsx and config files in the files subfolder.
Integrated
- Run
serve-integrated.cmd(for Windows) orserve-integrated.sh(Linux distros), then gohttp://localhost:8080in your browser.
Find them all under test/integrated in subfolders named 01, 02 etc., with the .xlsx files in the files subfolder.