PHP code example of natanaugusto / easyspreadsheets
1. Go to this page and download the library: Download natanaugusto/easyspreadsheets 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/ */
natanaugusto / easyspreadsheets example snippets
use EasySpreadsheets\Handler as EasySpreadsheet;
$file = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'example.xlsx';
$spread = new EasySpreadsheet;
$spread->load($file);
$spread->load($file, false);
$spread->getRows()
$spread->getRow()
$spread->getRow(2)