(need explanation) spout reader documentation
File path is a string pointing to the spreadsheet you're trying to read. You need to define it and pass it to Spout this way:
use Box\Spout\Reader\Common\Creator\ReaderEntityFactory;$filePath = APPPATH.'third_party\spout\src\temp\test.xlsx';$reader = ReaderEntityFactory::createReaderFromFile($filePath);$reader->open($filePath);foreach ($reader->getSheetIterator() as $sheet) { foreach ($sheet->getRowIterator() as $row) { // do stuff with the row $cells = $row->getCells(); ... }}$reader->close();
Can you give it a try?