承接 silverslice/docx-template 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

silverslice/docx-template

Composer 安装命令:

composer require silverslice/docx-template

包简介

Replace variables in docx document

README 文档

README

Install

composer require silverslice/docx-template

Usage

Place variables in your docx-document as {foo}. Then replace them with replace method. Use replaceMultiline to replace variables with multiline strings.

use Silverslice\DocxTemplate\Template;

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

$template = new Template();

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

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

    // replace once more
    ->replace('foo', 'bar')
    
    // replace with multiline string 
    ->replaceMultiline('foo', 'one
        two
        three')

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

统计信息

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

GitHub 信息

  • Stars: 7
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固