PHPackages                             jupitern/docx - 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. jupitern/docx

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

jupitern/docx
=============

docx tools - template engine, merge docx files

1.1.1(1y ago)16148.5k—8.3%3[2 issues](https://github.com/jupitern/docx/issues)MITPHPPHP &gt;=8.2

Since Feb 15Pushed 1y ago2 watchersCompare

[ Source](https://github.com/jupitern/docx)[ Packagist](https://packagist.org/packages/jupitern/docx)[ Docs](https://github.com/jupitern/docx)[ RSS](/packages/jupitern-docx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (6)Used By (0)

jupitern/docx
=============

[](#jupiterndocx)

#### PHP Docx tolls.

[](#php-docx-tolls)

- docx template system
- merge docx files on one file
- optionally add page break between merged files

Requirements
------------

[](#requirements)

PHP 5.4 or higher.

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

[](#installation)

Include jupitern/docx in your project, by adding it to your composer.json file.

```
{
    "require": {
        "jupitern/docx": "1.*"
    }
}
```

Usage
-----

[](#usage)

```
$dir = 'C:\\www\\docx\\';

// Docx template
$docx = \Jupitern\Docx\Docx::instance()
			->setTemplate($dir.'template.docx')
			->setData(['{name}' => 'john doe', '{address}' => 'at the end of the road'])
			->save($dir.'result.docx');

// Merge Docx files
$docxMerge = \Jupitern\Docx\DocxMerge::instance()
    // add array of files to merge
	->addFiles([$dir.'file1.docx', $dir.'file2.docx'])
    // output filepath and pagebreak param
	->save($dir.'result.docx', true);
```

Contributing
------------

[](#contributing)

- welcome to discuss a bugs, features and ideas.

License
-------

[](#license)

jupitern/docx is release under the MIT license.

You are free to use, modify and distribute this software

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance42

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~825 days

Total

5

Last Release

444d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4

1.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/8205aca1dd2a7d1f98452950c3754b7430d16bcfe53494bfdf5c20d277d7776c?d=identicon)[jupitern](/maintainers/jupitern)

---

Top Contributors

[![jupitern](https://avatars.githubusercontent.com/u/4422374?v=4)](https://github.com/jupitern "jupitern (2 commits)")

---

Tags

docxdocx-templatephpphp-docxphpdocxdocx templatedocx merge

### Embed Badge

![Health badge](/badges/jupitern-docx/health.svg)

```
[![Health](https://phpackages.com/badges/jupitern-docx/health.svg)](https://phpackages.com/packages/jupitern-docx)
```

###  Alternatives

[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.2k57.6M131](/packages/openspout-openspout)[daandesmedt/phpheadlesschrome

A PHP wrapper for using Google Chrome Headless mode. Convert URL or HTML to a PDF / screenshot. Easy to use and OOP interfaced.

92233.1k](/packages/daandesmedt-phpheadlesschrome)[kartik-v/mpdf

A PHP class to generate PDF files from HTML with Unicode/UTF-8 and CJK support. This is a fork of the official mPDF library.

39328.4k1](/packages/kartik-v-mpdf)[irebega/docx-replacer

PHP extension that allow you replace text to text or text to image in DOCX file

1432.1k](/packages/irebega-docx-replacer)[kiwilan/php-ebook

PHP package to read metadata and extract covers from eBooks, comics and audiobooks.

3414.6k1](/packages/kiwilan-php-ebook)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
