Replies: 16   Views: 9756
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

Edited by admin · 28-11-2019 - 10:27

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/" ] 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');

On there're guides to use phpdocx with Composer. frameworks and CMS. Private repositories can also be used.