EasySpreadsheet
Overview
That's a easy way to use PhpSpreadsheet.
What you can do with this:
Install:
composer require natanaugusto/easyspreadsheets
Begins:
require_once('../vendor/autoload.php');
use EasySpreadsheets\Handler as EasySpreadsheet;
$file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'example.xlsx';
$spread = new EasySpreadsheet;
$spread->load($file);
Get all rows:
$spread->getRows()
Get the current row:
$spread->getRow()
Get a especific row:
$spread->getRow(2)
(Yes, my English is a very bad shit)