Installing/configuring

Requirements

Mandatory:

Optional:

Installation

PHPWord is installed via Composer. You just need to add dependency on PHPWord into your package.

Example:

{
    "require": {
       "phpoffice/phpword": "v0.13.*"
    }
}

If you are a developer or if you want to help us with testing then fetch the latest branch for developers. Notice: all contributions must be done against the developer branch.

Example:

{
    "require": {
       "phpoffice/phpword": "dev-develop"
    }
}

Using samples

After installation, you can browse and use the samples that we’ve provided, either by command line or using browser. If you can access your PHPWord library folder using browser, point your browser to the samples folder, e.g. http://localhost/PhpWord/samples/.