PHPackages                             teqneers/phpword - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. teqneers/phpword

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

teqneers/phpword
================

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

139.2k1PHP

Since Jan 21Pushed 8y ago5 watchersCompare

[ Source](https://github.com/teqneers/PHPWord)[ Packagist](https://packagist.org/packages/teqneers/phpword)[ RSS](/packages/teqneers-phpword/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

PHPWord
=======

[](#phpword)

This repository is an source code of [PHPWord](http://phpword.codeplex.com/), turned into [Composer](http://getcomposer.org/) package. This repository is forked from [ferdynator](https://github.com/ferdynator/PHPWord).

Installation
------------

[](#installation)

All you have to do is to [get composer](http://getcomposer.org/download/) and add following lines to your `composer.json`:

```
    "require": {
       "teqneers/phpword": "*"
    }

```

Examples
--------

[](#examples)

### CantSplit in Tables

[](#cantsplit-in-tables)

Prevents the splitting of a table row if the content does not fit on the page. The whole row moves to a new page. See

```
...
$wordTable = $section->addTable('tableStyle');
$wordTable->setCantSplit(true);
...
```

### Usage of tab stops

[](#usage-of-tab-stops)

```
