Insert an external docx within your Word document with PHPdocx

  • Jun 03, 2011

This information is outdated, please, refer to the addDOCX documentation for up to date info.
This cool feature is available since PHPdocx 2.3.
You may use this method to add large chunks of content to your Word document with just a single line of code:

require_once '../../classes/';

$docx = new CreateDocx();
// Opening the import of a docx document
$docx->addText('DOCX content');
// Route to the document
// Close the import
$docx->addText('End DOCX content');