7

I have an Xlsx file content in a string, loaded from the database.

Currently, I create the spreadsheet using a temp file:

file_put_contents($fileName, $bundle['package_blank']);
$wobook = \PhpOffice\PhpSpreadsheet\IOFactory::load($fileName);
unlink($fileName);

Any way to read it directly from memory without having to write it in a temporary file?

YakovL
  • 7,557
  • 12
  • 62
  • 102
Marcodor
  • 4,578
  • 1
  • 20
  • 24

0 Answers0