How to use PHP & Config Word (Word.Application) To use Word.Application. Will need to install Microsoft Word and is compatible with Windows Server only
Screenshot
And check the status of the right to access to DCOM. If the problem please read the article