How to edit word documents with php?

Adarsh picture Adarsh · Jan 24, 2016 · Viewed 15.1k times · Source

I have an existing word document in my computer and like to edit this file from my website (using PHP). I was able to find PHPWORD but this deals with new documents only. I don't want to code PHP for the whole document, instead wish to use it for the stuff that varies.

Does anybody know any way out?

Answer

mazedlx picture mazedlx · Jan 24, 2016

https://github.com/PHPOffice/PHPWord

PHPWord also features a Reader which can be used to edit existing documents.