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

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

chaslain/docx-replace
=====================

Allows you to run simple search and replace operations on docx files

1.1.0(4y ago)1394PHPPHP &gt;=7.0

Since Jul 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/AlanHeckinJohnston/docx-replace)[ Packagist](https://packagist.org/packages/chaslain/docx-replace)[ RSS](/packages/chaslain-docx-replace/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (5)Used By (0)

```

To replace text inside a docx, create an instance. The constructor is default.

Call open() and pass in the path of the file.

Then, call replace($search, $replace) as many times as necessary. Note it will only replace the first instance of something.

Call save() to update the docx file.

-- 2021-07-08 20:48 - ajohnston

-- with any questions, email alanjohnston800@gmail.com
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

1820d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/868a9a29504dd6498b401aa4476bcd40c2018637133cf746627c58a9536acf87?d=identicon)[Chaslain](/maintainers/Chaslain)

---

Top Contributors

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

---

Tags

filesworddocxdocument

### Embed Badge

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

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

###  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!

3856.2M31](/packages/gotenberg-gotenberg-php)[mnvx/lowrapper

PHP wrapper over LibreOffice converter

127201.9k](/packages/mnvx-lowrapper)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

24095.2k](/packages/anourvalar-office)[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.

33175.6k](/packages/aspose-cloud-aspose-words-cloud)[paperdoc-dev/paperdoc-lib

A zero-dependency PHP library for generating, parsing and converting documents (PDF, HTML, CSV, DOCX)

1253.7k](/packages/paperdoc-dev-paperdoc-lib)[novay/laravel-word-template

Package Laravel untuk melakukan penggantian kata pada file menggunakan template dokumen (.doc atau .docx) yang sudah disediakan.

5616.6k](/packages/novay-laravel-word-template)

PHPackages © 2026

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