2017 © Pedro Peláez
 

library xlsx-streamer

A simple class for streaming data to .xlsx files.

image

snazzware/xlsx-streamer

A simple class for streaming data to .xlsx files.

  • Saturday, April 2, 2016
  • by snazzware
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

XlsxStreamer

Simple class to "stream" data to a .xlsx file., (*1)

The .xlsx file is created on disk, except for the dictionary. This allows far less memory consumption than using a solution such as (the excellent) PHPExcel library., (*2)

I plan to add more capabilities to this streamer in the future, such as basic formatting, support for embedded hyperlinks, etc., (*3)

Basic Usage

<?php

require __DIR__.'/vendor/autoload.php';

$streamer = new \Snazzware\XlsxStreamer();

$streamer->open('test.xlsx');
$streamer->write([
    'This is A1',
    'This is B1',
]);
$streamer->write([
    'This is A2',
    'This is B2',
]);
$streamer->close();

Blog posts

http://blog.snazzware.com/2016/01/05/streaming-large-data-sets-to-excel-xlsx-targets-part-1/, (*4)

http://blog.snazzware.com/2016/01/09/streaming-large-data-sets-to-excel-xlsx-targets-part-2/, (*5)

The Versions

02/04 2016

dev-master

9999999-dev https://github.com/snazzware/XlsxStreamer

A simple class for streaming data to .xlsx files.

  Sources   Download

MIT

The Requires

  • php >=5.5.30

 

02/04 2016

0.0.2

0.0.2.0 https://github.com/snazzware/XlsxStreamer

A simple class for streaming data to .xlsx files.

  Sources   Download

MIT

The Requires

  • php >=5.5.30

 

01/04 2016

0.0.1

0.0.1.0 https://github.com/snazzware/XlsxStreamer

A simple class for streaming data to .xlsx files.

  Sources   Download

MIT

The Requires

  • php >=5.5.30