PHPackages                             nadirhamid/htmltodocx - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nadirhamid/htmltodocx

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nadirhamid/htmltodocx
=====================

Finctions for help PHPWord to convert html to docx

v1.0.2(8y ago)0511PHP

Since Feb 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nadirhamid/htmltodocx)[ Packagist](https://packagist.org/packages/nadirhamid/htmltodocx)[ RSS](/packages/nadirhamid-htmltodocx/feed)WikiDiscussions master Synced 3w ago

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

htmltodocx
==========

[](#htmltodocx)

see

Project Description This converts HTML into Word documents (docx format). The code is written in PHP and works with PHPWord.

This converter is particularly designed to take simple HTML - the kind of HTML typically produced by WYSIWYG editors (such as TinyMCE) or that might be included in a blog - and converts this into a docx Word document. The intention is that the resulting Word document is in a form that is familiar to most people who use Word documents and therefore easy to use. It is not intended as a way to recreate complex web page layout in a Word document.

This converter requires SimpleHTMLDom and PHPWord\* to function - copies of both of which are included in the release here (although you might want to download the latest versions of these).

This converter has been developed through the Commtap project which supports people working with children with communication disabilities. Feel free to donate if you like this converter!

The copy of PHPWord here has been modified: so that it can work with international character sets, Discussion; to address a problem with table sizing when using LibreOffice: PHPWord discussion; PHPWord work item. Licenses

The converter (h2d\_htmlconverter.php) is licensed here with a GPL license, PHPWord has an LGPL license, and SimpleHTMLDom has an MIT license. The converter is also available with a BSD license as donation ware.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~505 days

Total

3

Last Release

3150d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17308065?v=4)[InfiniteT3ch](/maintainers/infinitet3ch)[@InfiniteT3ch](https://github.com/InfiniteT3ch)

---

Top Contributors

[![nadirhamid](https://avatars.githubusercontent.com/u/7277417?v=4)](https://github.com/nadirhamid "nadirhamid (5 commits)")[![hungkoala](https://avatars.githubusercontent.com/u/2076651?v=4)](https://github.com/hungkoala "hungkoala (3 commits)")

---

Tags

html to docx word phpword h2d htmltodocx

### Embed Badge

![Health badge](/badges/nadirhamid-htmltodocx/health.svg)

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

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

749284.3k35](/packages/civicrm-civicrm-core)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)[boomcms/boom-core

Core classes for BoomCMS

193.0k6](/packages/boomcms-boom-core)

PHPackages © 2026

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