Skip to content

Prezent/excel-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prezent/excel-exporter

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

Installation

This extension can be installed using Composer. Tell composer to install the extension:

$ php composer.phar require prezent/excel-exporter

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.

About

Export class around the PHPExcel library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages