ferdynator/phpword

PHPWord is a library written in PHP that create word documents. This Package is modified to work with Symfony 2


Keywords
Symfony2, word, doc, docx
License
GPL-3.0

Documentation

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>