fml / phpsimpleexcel
PHPSimpleExcel is a library basing on oliverschwarz/php-excel
Installs: 99
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/fml/phpsimpleexcel
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.7.*
This package is not auto-updated.
Last update: 2025-10-01 16:32:21 UTC
README
PHPSimpleExcel is a library basing on oliverschwarz/php-excel.
This implementation allow to you to controlling current row by startRow()
method, which returns Row object.
Instalation
FunkyMonkeyLabs\PHPSimpleExcel is available on packagist.org (composer), so you can simply add:
"require": {
"fml/phpsimpleexcel" : "v1.0.0"
}
Usage
<?php require_once __DIR__.'/vendor/autoload.php'; $excel = new FML\PhpSimpleExcel\PhpSimpleExcel(); $excel->addNamedStyle('idFormat', array( "NumberFormat" => array( "ss:Format" => "##00" ) )); $excel->addRow(array( "id", "Column1", "Column2" )); foreach(range(0,11) as $id) { $excel ->startRow() ->addCell($id, 'Number', 'idFormat') ->addCell('value'.$id) ->addCell('value2'.$id) ->end(); } echo $excel->generateXML('excel');