Forum


Replies: 16   Views: 8731
Installation with composer
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 admin  · 09-12-2014 - 11:41

Hello, No, that package is not legit. You can include phpdocx as any other external library with composer. This is a quick guide using the namespace package (only for Corporate and Enterprise licenses): 1) Extract the package to the vendor/phpdocx folder 2) Add this line in the autoload option of your composer.json: "files": [ "vendor/phpdocx/Classes/Create/CreateDocx.inc" ] 3) Update the composer autoloader: php composer.phar dump-autoload 4) You can use the library: $docx = new \Phpdocx\Create\CreateDocx(); $docx->addText('This is a test'); $docx->createDocx('Sample'); Regards.