blondak/dataresponse

Data response for Nette with dynamic datasource

0.1.1 2018-04-09 04:19 UTC

This package is not auto-updated.

Last update: 2024-04-23 05:43:16 UTC


README

XLSX,CSV response for Nette Framework

  • gzip encoding
  • dynamic datasource

Download package

composer require blondak/dataresponse

Sample datasource

<?php

namespace App\Model\Service\Feed;

Presenter
```php
public function actionExportCsv(int $id): void
{
	$response = new CsvResponse($this->datasource, sprintf('export-%d.csv', $id));
	$this->sendResponse($response);
}