Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 681 Bytes

index.md

File metadata and controls

32 lines (20 loc) · 681 Bytes

prezent/excel-exporter

A wrapper around PhpSpreadsheet, to allow for easy export of data to Excel files.

Index

  1. Installation
  2. Advanced Usage
  3. Styling your exports

Quick example

<?php

use Prezent\ExcelExporter\Exporter;

$exporter = new Exporter($tempDir);

$data = ['foo', 'bar'];
$exporter->writeRow($data);

// generate the file
list($path, $filename) = $exporter->generateFile('export.xlsx');

// stream to browser
$exporter->outputFile($filename);

Documentation

The complete documentation can be found in the doc directory.