PHPackages                             nadirhamid/docx-to-html - 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. nadirhamid/docx-to-html

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

nadirhamid/docx-to-html
=======================

composer integration of xylude/Docx-to-HTML

v0.0.1(8y ago)121.1k—0%1MITHTMLPHP &gt;=5.3.0

Since Nov 7Pushed 8y ago1 watchersCompare

[ Source](https://github.com/nadirhamid/Docx-to-HTML)[ Packagist](https://packagist.org/packages/nadirhamid/docx-to-html)[ Docs](https://github.com/nadirhamid/Docx-to-HTML)[ RSS](/packages/nadirhamid-docx-to-html/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Docx-to-HTML
============

[](#docx-to-html)

Converts .docx files to HTML

This is a PHP class that will convert your .docx files to HTML. It is by far not perfect, but will handle most things decently.

This class requires the following:

- [The ZipArchive class](http://php.net/manual/en/class.ziparchive.php)
- [SimpleXML](http://php.net/manual/en/book.simplexml.php)

Composer install
----------------

[](#composer-install)

```
composer require nadirhamid/docx-to-html

```

\###How to use

```
include('./docx_reader.php');

$doc = new Docx_reader();
$doc->setFile('./sample.docx');

if(!$doc->get_errors()) {
    $html = $doc->to_html();
    $plain_text = $doc->to_plain_text();

    echo $html;
} else {
    echo implode(', ',$doc->get_errors());
}
echo "\n";

```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

3106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/051950578454dbdbc7b48ad0704ed4ed7929abb57ed96fcff2b2e0123977ed23?d=identicon)[infinitet3ch](/maintainers/infinitet3ch)

---

Top Contributors

[![nadirhamid](https://avatars.githubusercontent.com/u/7277417?v=4)](https://github.com/nadirhamid "nadirhamid (6 commits)")[![xylude](https://avatars.githubusercontent.com/u/831373?v=4)](https://github.com/xylude "xylude (2 commits)")

---

Tags

htmldocx

### Embed Badge

![Health badge](/badges/nadirhamid-docx-to-html/health.svg)

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

###  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)[spipu/html2pdf

Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE

1.8k10.6M45](/packages/spipu-html2pdf)[faisalman/simple-excel-php

Easily parse / convert / write between Microsoft Excel XML / CSV / TSV / HTML / JSON / etc formats

582599.4k1](/packages/faisalman-simple-excel-php)[kartik-v/yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.

1605.5M84](/packages/kartik-v-yii2-mpdf)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[netcarver/textile

Textile markup language parser

2311.5M16](/packages/netcarver-textile)

PHPackages © 2026

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