- PHP 7.1+
- XML Parser extension
PHPWord is installed via Composer. You just need to add dependency on PHPWord into your package.
composer require phpoffice/phpword
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.
composer require phpoffice/phpword:dev-master
More examples are provided in the
For an easy access to those samples launch
php -S localhost:8000 in the samples directory then browse to http://localhost:8000 to view the samples.