Здравствуйте, код index.php PHP: <?php require_once 'PHPWord.php'; $PHPWord = new PHPWord(); $template = $PHPWord->loadTemplate('Template.docx'); $template->setValue('pc', 'ho'); $template->setValue('pc_sn', '0123'); $template->save('document.docx'); ?> Сам шаблон Template.docx текст: др. ${pc}, Серийный №: ${pc_sn}. результат так и остается без изменении
решил спасибо https://ru.stackoverflow.com/questions/372641/phpword-template-не-всегда-работает-setvalue https://github.com/PHPOffice/PHPWord