Hello,
You just need to replace the placeholder by a WordFragment. We recommend you to check the samples included within the package and the examples available on http://www.phpdocx.com/api-documentation/templates/replace-variable-word-fragment-Word-document
Regards.