В maatwebsite / Excel 2. * вы можете получить значение в ячейке с помощью
Excel::load('file.xlsx, function($excel) {
$cell = $excel->getSheet(2)->getCellByColumnAndRow(10, 1);
});
Эти методы были удалены в 3. *
Однако maatwebsite/Excel
- это просто оболочка вокруг phpoffice/phpspreadsheet
- поэтому мы все равно можем вызывать функцию непосредственно из этой библиотеки:
$inputFileName = 'filename.xlsx';
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($inputFileName);
$cellValue = $spreadsheet->getSheet(2)->getCellByColumnAndRow(10, 1)->getValue();