campo/docxfindandreplace 问题修复 & 功能扩展

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

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

campo/docxfindandreplace

Composer 安装命令:

composer require campo/docxfindandreplace

包简介

Find and replace variables in a DOCX template.

README 文档

README

Latest Version on Packagist Software License Latest Version on Packagist Build Status

This is a simple find and replace utility for DOCX files. Simple way to take a DOCX template, map some variables, and save a new copy.

Installation

Via Composer

$ composer require campo/docxfindandreplace

Usage

In your DOCX template you will need to wrap any variables you would like to replace with curly braces (e.g. {FIRSTNAME}. Be sure to use variables in your template that are all uppercase as Microsoft Word's spell check will create issues.

\Campo\DocxFindAndReplace\Docx::create(__DIR__ . "/template.docx")->replace(
    [
        'FIRSTNAME' => 'Joe',
        'LASTNAME' => 'Campo',
    ]
)->save(__DIR__ . '/newfile.docx');

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-09-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固