rwsoft/excel-bundle

This bundle integrates PHPExcel with Symfony2.

Installs: 107

Dependents: 0

Stars: 1

Watchers: 1

Language: PHP

1.0.0 2013-08-04 10:11 UTC

README

This bundle integrates PHPExcel with Symfony2.

Registered Formats

ExcelBundle registers the following formats to use in routes.

  • csv
  • xls
  • xlsx
  • pdf

Sending a Response

use RWSoft\ExcelBundle\ExcelResponse;

$doc = new \PHPExcel();
$objWriter = new \PHPExcel_Writer_Excel5($doc);
$response = new ExcelResponse($objWriter);
$response->send();