Skip to content

Instantly share code, notes, and snippets.

View floriankapaun's full-sized avatar
👋

floriankapaun

👋
View GitHub Profile
@floriankapaun
floriankapaun / XlsxResponse.php
Last active October 26, 2022 13:04 — forked from ZhukV/ExcelFileResponse.php
.xlsx file response to download Excel file generated by PHPSpreadsheet (Symfony HttpFoundation)
<?php
declare(strict_types=1);
namespace App\HttpFoundation;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use Symfony\Component\HttpFoundation\Response;
/**