PHPackages                             direct808/docxerator - 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. direct808/docxerator

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

direct808/docxerator
====================

Simple MS Word DOCX template processor

0.1.4(7y ago)047MITPHP

Since Sep 20Pushed 7y agoCompare

[ Source](https://github.com/direct808/Docxerator)[ Packagist](https://packagist.org/packages/direct808/docxerator)[ RSS](/packages/direct808-docxerator/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Docxerator
==========

[](#docxerator)

**Docxerator is a simple MS Word DOCX template processor**

Features
--------

[](#features)

- Customizing the label templates
- Processing of fragmented labels

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

[](#requirements)

- PHP version 5.6 or higher
- XML extension
- MBString extension

Install with composer
---------------------

[](#install-with-composer)

To install with [Composer](https://getcomposer.org/), simply require the latest version of this package.

```
composer require direct808/docxerator
```

Make sure that the autoload file from Composer is loaded.

```
// somewhere early in your project's loading, require the Composer autoloader
// see: http://getcomposer.org/doc/00-intro.md
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

Docxerator is very easy to use:

```
// reference the Docxerator namespace
use Direct808\Docxerator\Docxerator;

// instantiate and use the Docxerator class
$docxerator = new Docxerator();

// open docx template file (contains the label #MARK#)
$docxerator->open('./you_docx_document.docx');

// Replace the label
$docxerator->replace('MARK', 'Your replaced content');

// Save the processing document
$processingDocumentPath = $docxerator->save();
```

### Custom label format

[](#custom-label-format)

```
$docxerator = new Docxerator();

// Docxerator will processing labels of the format {MARK}
$docxerator->setMarkPattern('/\{(\w+)\}/i');

$docxerator->open('./you_docx_document.docx');

$processingDocumentPath = $docxerator->save();
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

5

Last Release

2745d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cb7bf83ec59516060098b116a2a52e5c18020cba18aa7ec5d6509f5f2fabc139?d=identicon)[direct808](/maintainers/direct808)

---

Top Contributors

[![direct808](https://avatars.githubusercontent.com/u/20922488?v=4)](https://github.com/direct808 "direct808 (7 commits)")

---

Tags

docxmswordMS Worddocxerator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/direct808-docxerator/health.svg)

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

###  Alternatives

[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[vaites/php-apache-tika

Apache Tika bindings for PHP: extracts text from documents and images (with OCR), metadata and more...

1171.5M2](/packages/vaites-php-apache-tika)[mnvx/lowrapper

PHP wrapper over LibreOffice converter

129190.5k](/packages/mnvx-lowrapper)[krustnic/docx-merge

Simple library for merging multiple MS Word ".docx" files into one

61193.9k](/packages/krustnic-docx-merge)[vench/vs-word

The library allows you to dinamicaly create files \*.docx. Jast convert HTML to \*.docx

2218.2k](/packages/vench-vs-word)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)

PHPackages © 2026

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