2017 © Pedro Peláez
 

symfony-bundle big-xlsx-bundle

Symfony2 Bundle for generating large multi-sheeted xlsx files with low memory usage

image

bassim/big-xlsx-bundle

Symfony2 Bundle for generating large multi-sheeted xlsx files with low memory usage

  • Thursday, May 7, 2015
  • by Bassim
  • Repository
  • 1 Watchers
  • 3 Stars
  • 3,316 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 11 % Grown

The README.md

BigXlsxBundle

Symfony2 Bundle for generating large multi-sheeted xlsx files with low memory usage., (*1)

This Bundle basically acts as a replacement for creating csv files with large datasets. This, because the CSV format can be troublesome when it comes to difference in default cell separators en line-endings on specific operating systems. Also, obviously, CSV cannot handle multiple sheets., (*2)

This bundle uses the 'codeplex/phpexcel' bundle but tries to get rid of the enormous execution time and memory consumption when one wants to store large datasets in a xlsx., (*3)

Installation

add this to your composer.json:, (*4)

    "bassim/big-xlsx-bundle": "dev-master"

add this to your AppKernel.php, (*5)

    new Bassim\BigXlsxBundle\BassimBigXlsxBundle(),

Basic Usage

    /** @var $service BigXlsxService */
    $service = $container->get('bassim_big_xlsx.service');

    $data[] = array("id","name");
    for ($i=0;$i<1;$i++) {
        $data[] = array($i, "name_".$i);
    }

    $service->addSheet(0, "test Sheet_0", $data);
    $file = $service->getFile();

Adding a custom sheet

   /** @var $service BigXlsxService */
    $service = $container->get('bassim_big_xlsx.service');

    $data[] = array("id","name");
    for ($i=0;$i<1;$i++) {
        $data[] = array($i, "name_".$i);
    }

    $service->addSheet(0, "test Sheet_0", $data);

    $objPHPExcel = $service->getPHPExcel();

    //add custom sheet
    $objPHPExcel->createSheet(1);
    $objPHPExcel->setActiveSheetIndex(1);
    $objPHPExcel->getActiveSheet()->setTitle("test");

    // ....

    $file = $service->getFile();

The Versions

07/05 2015

dev-master

9999999-dev http://github.com/Bassim/BigXlsxBundle

Symfony2 Bundle for generating large multi-sheeted xlsx files with low memory usage

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Simons

csv php excel spreadsheet xlsx

07/05 2015

v0.2

0.2.0.0 http://github.com/Bassim/BigXlsxBundle

Symfony2 Bundle for generating large multi-sheeted xlsx files with low memory usage

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Simons

csv php excel spreadsheet xlsx

26/09 2013

v0.1

0.1.0.0 http://github.com/Bassim/BigXlsxBundle

Symfony2 Bundle for generating large multi-sheeted xlsx files with low memory usage

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bas Simons

csv php excel spreadsheet xlsx