theoboldt / PHPWord

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHPWord

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.

Perquisites:

  • PHP 5.2.x or newer
  • PHP Extension ZipArchive
  • PHP Extension xmllib

Installation

All you have to do is to get composer and add following lines to your composer.json:

    "require": {
        //...
       "ferdynator/phpword": "v1.0"
    }

Add as service (optional):

In your services.xml:

    <service id="PHPWord" class="PHPWord">
        <file>%kernel.root_dir%/../vendor/ferdynator/phpword/Library/PHPWord.php</file>
    </service>

About

License:Other