PHPackages                             rafikhaceb/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. rafikhaceb/htmltodocx

ActiveLibrary

rafikhaceb/htmltodocx
=====================

Functions for help PHPWord to convert html to docx

v1.0.3(7y ago)03.3k↓100%PHP

Since Feb 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RafikHaceb/htmltodocx)[ Packagist](https://packagist.org/packages/rafikhaceb/htmltodocx)[ RSS](/packages/rafikhaceb-htmltodocx/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (5)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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

4

Last Release

2750d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21fd2367940e6e73c0d49fc25ec99930c78b4744d97f96ae5503fc0edfb70bdd?d=identicon)[rafikhaceb](/maintainers/rafikhaceb)

---

Top Contributors

[![rhabkg](https://avatars.githubusercontent.com/u/146323538?v=4)](https://github.com/rhabkg "rhabkg (7 commits)")[![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/rafikhaceb-htmltodocx/health.svg)

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

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

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

728272.9k17](/packages/civicrm-civicrm-core)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1121.2k](/packages/abydahana-aksara)[devgeniem/redipress

RediPress

3432.6k](/packages/devgeniem-redipress)[novay/laravel-word-template

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

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

PHPackages © 2026

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