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

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

This package is auto-updated.

Last update: 2021-10-18 02:49:28 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();