glhd / linen
0.1.0
2026-03-23 20:42 UTC
Requires
- ext-json: *
- illuminate/support: ^10|^11|^12|^13|dev-master
- openspout/openspout: ^4.24
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- mockery/mockery: ^1.6
- orchestra/testbench: ^8.37|^9.17|^10.11|^11.0|^12.x-dev
- phpunit/phpunit: ^10.5|^11.5|^12.5|^13.0
README
Linen is a lightweight spreadsheet utility for Laravel. It's a simple wrapper for openspout with some data normalization conveniences.
Installation
composer require glhd/linen
Usage
To read a spreadsheet:
foreach (Linen::read('path/to/your.xlsx') as $row) { // $row is a collection, keyed by the headers in snake_case }
To write a spreadsheet:
// $data can be any iterable/Enumerable/etc $path = Linen::write($data, 'path/to/your.xlsx');
