glendemon/phpexcel-wrapper

There is no license information available for the latest version (dev-master) of this package.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 0

pkg:composer/glendemon/phpexcel-wrapper

dev-master 2015-03-20 18:46 UTC

This package is auto-updated.

Last update: 2025-10-10 07:06:14 UTC


README

Class wrapper for PHPExcel

Examples

        $chart = PhpExcelWrapper::getChart(
                $data,
                PHPExcel_Chart_DataSeries::TYPE_LINECHART,
                PHPExcel_Chart_DataSeries::GROUPING_STANDARD,
                null,
                '[h]:mm:ss'
            );

        $chart1 = PhpExcelWrapper::getChart(
                $data,
                PHPExcel_Chart_DataSeries::TYPE_BARCHART,
                PHPExcel_Chart_DataSeries::GROUPING_CLUSTERED,
                $columns,
                '[h]:mm:ss'
            );

        $chart2 = PhpExcelWrapper::getChart(
                $data,
                PHPExcel_Chart_DataSeries::TYPE_BARCHART,
                PHPExcel_Chart_DataSeries::GROUPING_CLUSTERED,
                $columns,
                null,
                20
            );

        $xls = new PhpExcelWrapper($dirName);
        if (is_array($function)) {
			$xls->setData($function, $titles, $chart);
		} else {
			$xls->splitToSheets($function, $titles, $chart);
		}
		if (!$download) {
			$xls->save();
		} else {
			$xls->downloadFromStream();
		}