We currently have a self made php class to convert a HTML string into a .doc file using mhtml. This works fine, but our customers would like to be able to export to .docx instead of .doc, which proves to be a bit challenging.
Looking around for a solution online I stumbled upon the PHPWord library. As I tried this out I quickly noticed that it wasn’t particularly great at receiving the same HTML as we already provide our own library for the mhtml .doc files, and summarizing by also looking at the issues it seems to have with tables etc. I do not think its a good solution either.
Then there is PHPDocx, which I haven’t tested, but that seems to be the most used, but also has a price tag
But, that seems to be what is available.
Is there any other solutions you can suggest? Specifically I would like a solution that simply takes some HTML and converts it to a docx document.