Since v3.0 we have included the notion of Word (or WordML) fragments to simplify the process of creating sophisticated Word documents from scratch.
The idea is conceptually simple: one can create “independent chunks” of content that are not directly included in the Word document but rather “buffered” so they can be easily inserted within other Word elements like tables, lists or paragraphs.
PHPDocx. Dinamic generation of reports in .docx format