glhd/linen

Maintainers

Details

github.com/glhd/linen

Source

Issues

Installs: 25 390

Dependents: 0

Suggesters: 0

Security: 0

Stars: 206

Watchers: 2

Forks: 7

Open Issues: 0

pkg:composer/glhd/linen

0.0.3 2025-07-16 14:54 UTC

This package is auto-updated.

Last update: 2025-09-16 15:17:30 UTC


README

Build Status Coverage Status Latest Stable Release MIT Licensed Follow @inxilpro on Twitter

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