nope7777/xlsx-writer

XLSXWriter - lightweight library for generating large Excel exports fast and without memory overflow.

v1.0.1-beta 2024-09-10 11:05 UTC

This package is auto-updated.

Last update: 2025-04-10 12:24:27 UTC


README

XLSXWriter is lightweight library for generating large Excel exports fast and without memory overflow.

Documentation

Usage example:

use XLSXWriter\Workbook;

$workbook = new Workbook();

$workbook->getDefaultStyle()
    ->setFontName('Arial')
    ->setFontSize(9);

$sheet = $workbook->addSheet('Sheet title');
$sheet->addRow(
    ['Person', 'Company', 'Amount'],
    $workbook->getNewStyle()->setFontBold(true)
);
$sheet->skipRows(2);

$sheet->addRows([
    ['User1', 'Company1', 100],
    ['User2', 'Company2', 200],
    ['User3', 'Company3', 300],
]);

$workbook->output('some-export.xlsx');