I would like to offer an Excel-File for download with PhpSpreadsheet
Here is my code:
require \'vendor/autoload.php\'; use PhpOffice\\PhpSpr
The issue was the tmp directory used by phpSpreadSheet and that was not writable by PHP process. I changed the tmp directory to upload tmp directory and now the issue is resolved. I solved the issue using
\PhpOffice\PhpSpreadsheet\Shared\File::setUseUploadTempDirectory(true);