PHPWord is a library written in PHP that creates word documents. No Windows operating system is needed for usage because the result are Docx files (Office Open XML) that can be opened by all major office software.
While the library already contained a powerful templating system, it was not possible to add on the fly rows to a table.
As I required tables with a changing number of rows, I’ve added support for this. That was already quite some time ago, but still, I get very often feedback on this feature. It seems to be that I wasn’t the only one who needed it.
Git it from Github.