This repository is an source code of PHPWord, turned into a Composer package. I cloned this from kkula and made some changes to make it work with Symfony2.
- PHP 5.2.x or newer
- PHP Extension ZipArchive
- PHP Extension xmllib
All you have to do is to get composer and add following lines to your composer.json
:
"require": {
//...
"ferdynator/phpword": "v1.0"
}
In your services.xml
:
<service id="PHPWord" class="PHPWord">
<file>%kernel.root_dir%/../vendor/ferdynator/phpword/Library/PHPWord.php</file>
</service>