LaravelPackages.net
Acme Inc.
Toggle sidebar
glhd/linen

41.271
214
0.1.0
About glhd/linen

glhd/linen is a Laravel package. It currently has 214 GitHub stars and 41.271 downloads on Packagist (latest version 0.1.0). Install it with composer require glhd/linen. Discover more Laravel packages by glhd or browse all Laravel packages to compare alternatives.

Last updated

Linen

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');

Star History Chart