Merge all examples together

Closes #17
This commit is contained in:
Adrien Crivelli
2017-10-01 17:48:59 +09:00
parent 29208e9d99
commit 50a0ec58af
174 changed files with 1878 additions and 2830 deletions
@@ -0,0 +1,13 @@
<?php
use PhpOffice\PhpSpreadsheet\IOFactory;
require __DIR__ . '/../Header.php';
$inputFileName = __DIR__ . '/sampleData/non-existing-file.xls';
$helper->log('Loading file ' . pathinfo($inputFileName, PATHINFO_BASENAME) . ' using IOFactory to identify the format');
try {
$spreadsheet = IOFactory::load($inputFileName);
} catch (InvalidArgumentException $e) {
$helper->log('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME) . '": ' . $e->getMessage());
}