dev-master
9999999-devFind and replace variables in a DOCX template.
MIT
The Development Requires
by Joe Campo
1.0.0
1.0.0.0Find and replace variables in a DOCX template.
MIT
The Development Requires
by Joe Campo
Find and replace variables in a DOCX template.
![Software License][ico-license]
, (*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)
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');
The MIT License (MIT). Please see License File for more information., (*5)
Find and replace variables in a DOCX template.
MIT
Find and replace variables in a DOCX template.
MIT