Download the PHP package phpoffice/phpword without Composer

On this page you can find all versions of the php package phpoffice/phpword. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.


After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
Rate from 1 - 5
Rated 4.54 based on 13 reviews

Informations about the package phpword


Latest Stable Version Coverage Status Total Downloads License CI Join the chat at

PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft Office Open XML (OOXML or OpenXML), OASIS Open Document Format for Office Applications (OpenDocument or ODF), Rich Text Format (RTF), HTML, and PDF.

PHPWord is an open source project licensed under the terms of Developers' Documentation.

If you have any questions, please ask on StackOverFlow

Read more about PHPWord:


With PHPWord, you can create OOXML, ODF, or RTF documents dynamically using your PHP scripts. Below are some of the things that you can do with PHPWord library:


PHPWord requires the following:


PHPWord is installed via Composer. To add a dependency to PHPWord in your project, either

Run the following to use the latest stable version

or if you want the latest unreleased version

Getting started

The following is a basic usage example of the PHPWord library.

More examples are provided in the http://localhost:8000 to view the samples. You can also read the Developers' Documentation for more detail.


We welcome everyone to contribute to PHPWord. Below are some of the things that you can do to contribute.

All versions of phpword with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1|^8.0
ext-dom Version *
ext-json Version *
ext-xml Version *
phpoffice/math Version ^0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phpoffice/phpword contains the following files

Loading the files please wait ....