I'm just trying to use the PhpOffice/PhpSpreadsheet with ZF3. I installed by composer and when I used then : $inputFileType = 'Xls';
$reader = IOFactory::createReader($inputFileType);
my application show the following error: Class 'PhpOffice\PhpSpreadsheet\IOFactory' not found
$reader = IOFactory::createReader($inputFileType);
$reader->setReadDataOnly( true );
$spreadsheet = $reader->load($inputFileName);
$sheetData = $spreadsheet->getActiveSheet()->toArray(null, true, true, true);
return $sheetData;
}
require_once 'vendor/autoload.php';
somewhere in your project, but that must be already the case if you use ZF3