Service for generating back ups
Get Excel Workbook as a string
$result = ExcelFactory::asString($input);
This can then be outputted as a file
header('Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: inline; filename="workbook.xlsx"');
./vendor/bin/phpcbf --standard=psr2 ./src
./vendor/bin/phpcs --standard=psr2 ./src