Replies: 11   Views: 5842
How to install phpdocx in yii2?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by IncodisPM  · 09-03-2016 - 13:36

How to install phpdocx in yii2?

Posted by admin  · 09-03-2016 - 14:40


As you're using a Corporate license, you just need to download the namespace package. In this package you may find the folder plugins, where you can read the instructions to integrate phpdocx with any Composer project.


Posted by IncodisPM  · 10-03-2016 - 06:29

But inside plugins folder, i found only 2 folders drupal and wordpress. I want to integrate it in Yii2, Please help.

Posted by admin  · 10-03-2016 - 08:02


You need to download the namespaces package, if you only see drupal and wordpress plugins it's because you have downloaded the classic package.


Posted by IncodisPM  · 10-03-2016 - 10:35

Thanks, 1 more question:

Can i convert ms-word document to html file using this library? if yes, how?

Posted by IncodisPM  · 11-03-2016 - 11:00


i am geting com_exception : "Failed to create COM object `word.application': CoInitialize has not been called", while creating word to html file, Could you please suggent any solution?

Posted by admin  · 11-03-2016 - 11:32


You're writting by email the same messages you're posting, please use a single way to send your questions. We have replied your latest question by email.


Posted by IncodisPM  · 15-03-2016 - 07:46


We have resoved the com object error, but now a new error occurs in file :

Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft Word<br/><b>Description:</b> The requested member of the collection does not exist.' in D:\wamp\www\PHPWord\Classes\Phpdocx\Converters\ on line 62

Please help.

Posted by admin  · 15-03-2016 - 07:59


That's a generic error from PHP COM, not from phpdocx.

We recommend you to follow this guide:

and using the PHP CLI mode run the most simple example you can find on:

There must be some permission missing on yoour Window server. We also recommend you to read the topic available on

And as explained previously, you're not using the conversion plugin recommended on


Posted by IncodisPM  · 15-03-2016 - 15:37


I have done some changes as per the suggested links, but not get sucess. However i have found error:

"Unable to load dynamic library 'D:/wamp/bin/php/php5.6.16/ext/' - The specified module could not be found."

in my php_error.log file.

Could you please suggest anyting.

Thanks and Regards

Posted by admin  · 15-03-2016 - 16:33


That's a PHP error, not from phpdocx. You're trying to load a dynamic library,, that doesn't exist. And Windows doesn't use SO libraries but DLL.

We recommend you to check the PHP COM module installation and do the simplest test using the PHP CLI mode. For further support please write to contact[at]