fml/phpsimpleexcel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-29