generating dynamic docx documents

docx, php, templates

Solution

OpenTBS can generate Docx documents in pure PHP, using the technique of templates.

- nesting tables => YES

- merging table cells => YES

- looping templates => I'm not sure what is means, but probably YES

- combining/nesting templates => You can insert XML sub templates, not DOCX sub-templates. Or you can read other DOCX sub-XML parts, and merge-them into a main DOCX.

Problem

I'm looking for a way to generate docx-files using PHP. I've used PHPWord but it's not sufficient for my project. It doesn't have enough elements and the template engine is too basic. My system has to be capable of: - nesting tables - merging table cells - looping templates - combining/nesting templates Are there any good solutions? Is there anyone with experience in this matter? Thanks!

Original source