https://github.com/glendemon/phpexcel-wrapper
Class wrapper for PHPExcel
https://github.com/glendemon/phpexcel-wrapper
phpexcel phpexcel-wrapper
Last synced: about 1 year ago
JSON representation
Class wrapper for PHPExcel
- Host: GitHub
- URL: https://github.com/glendemon/phpexcel-wrapper
- Owner: glendemon
- License: mit
- Created: 2015-03-07T15:38:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-20T18:46:24.000Z (about 11 years ago)
- Last Synced: 2025-06-04T00:59:52.502Z (about 1 year ago)
- Topics: phpexcel, phpexcel-wrapper
- Language: PHP
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpexcel-wrapper
Class wrapper for PHPExcel
# Examples
```php
$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();
}
```