prezent/excel-exporter

Wrapper around PhpSpreadsheet to export data to Excel

Installs: 10 180

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

pkg:composer/prezent/excel-exporter

2.1.1 2024-09-04 09:44 UTC

This package is auto-updated.

Last update: 2025-10-04 12:11:55 UTC


README

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.