silverslice/excel-template 问题修复 & 功能扩展

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

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

silverslice/excel-template

最新稳定版本:v0.1.0

Composer 安装命令:

composer require silverslice/excel-template

包简介

Replace variables in xlsx document

README 文档

README

Why

If you try to create a simple template in PHPExcel, insert some data and save it as a new file, you will see that conditional formatting is missing. PHPExcel is not a library for editing workbook files: you're not using PHPExcel to change only one string in a file and save it in the same state.

Install

composer require silverslice/excel-template

Usage

Place variables in your xlsx-document as {foo}. Then replace them with replace method.

use Silverslice\ExcelTemplate\Template;

require __DIR__ . '/vendor/autoload.php';

$template = new Template();

// open file
$template->open('test.xlsx')

    // replace one variable to another
    ->replace('one', 'two')

    // replace once more
    ->replace('foo', 'bar')

    // save document
    ->save('test.xlsx');

统计信息

  • 总下载量: 3.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-11-01