2017 © Pedro Peláez
 

library docxfindandreplace

Find and replace variables in a DOCX template.

image

campo/docxfindandreplace

Find and replace variables in a DOCX template.

  • Monday, March 27, 2017
  • by campo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 45 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

DOCX Find & Replace

Latest Version on Packagist ![Software License][ico-license] Latest Version on Packagist Build Status, (*1)

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., (*2)

Installation

Via Composer, (*3)

``` bash $ composer require campo/docxfindandreplace, (*4)


## 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. ``` php \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., (*5)

The Versions

27/03 2017

dev-master

9999999-dev

Find and replace variables in a DOCX template.

  Sources   Download

MIT

The Development Requires

by Joe Campo

20/09 2016

1.0.0

1.0.0.0

Find and replace variables in a DOCX template.

  Sources   Download

MIT

The Development Requires

by Joe Campo