fml/phpsimpleexcel
最新稳定版本:v1.0.2
Composer 安装命令:
composer require fml/phpsimpleexcel
包简介
PHPSimpleExcel is a library basing on oliverschwarz/php-excel
README 文档
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');
统计信息
- 总下载量: 335
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-29