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.2.0(1mo ago)17156.3k↓58.6%3[2 issues](https://github.com/jupitern/docx/issues)MITPHPPHP &gt;=8.3

Since Feb 15Pushed 1mo 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 3d ago

READMEChangelog (4)DependenciesVersions (7)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 8.3 or higher.

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

[](#installation)

Pull the package via composer.

```
composer require jupitern/docx
```

Usage
-----

[](#usage)

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

// Merge Docx files
$docxMerge = \Jupitern\Docx\DocxMerge::instance()
    // add array of files to merge
	->addFiles(['file1.docx', 'file2.docx'])
    // output filepath and pagebreak param
	->save('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

61

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community10

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 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 ~749 days

Recently: every ~935 days

Total

6

Last Release

47d ago

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

1.1.0PHP &gt;=8.2

1.2.0PHP &gt;=8.3

### 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 (3 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.2k70.2M244](/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.

92255.6k](/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.

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

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

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

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

3918.3k3](/packages/kiwilan-php-ebook)

PHPackages © 2026

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