You can use a first docx as a template to create tables, and after open this file as a new template an replace placeholders within HTML or other content.
Phpdocx can create as many DOCX files as needed and use them as templates to do complex documents.
Regards.