PHP code example of glhd / linen
1. Go to this page and download the library: Download glhd/linen library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
glhd / linen example snippets
foreach (Linen::read('path/to/your.xlsx') as $row) {
// $row is a collection, keyed by the headers in snake_case
}
// $data can be any iterable/Enumerable/etc
$path = Linen::write($data, 'path/to/your.xlsx');