PHPWord is a library written in PHP that create word documents.

Installs: 26 837

Dependents: 0

Suggesters: 0

dev-master 2012-12-25 22:55 UTC


This repository is an source code of PHPWord, turned into Composer package.

The idea is similiar to phpexcel/phpexcel, developed by ddeboer.


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

    "require": {
       "phpword/phpword": "*"

After that, use composer to install all dependences with:

    $ ./composer.phar install


You have to require your autoloader, generated automaticly by Composer.

    require_once "vendor/autoload.php";

After that, you may call PHPWord library calling

    $doc = new \PHPWord();