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

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

dogukanatakul/docx-to-html
==========================

composer integration of xylude/Docx-to-HTML

01.2k↓33.3%HTML

Since Jun 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dogukanatakul/docx-to-html)[ Packagist](https://packagist.org/packages/dogukanatakul/docx-to-html)[ RSS](/packages/dogukanatakul-docx-to-html/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#docx-to-html)

Source:

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 dogukanatakul/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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17163284?v=4)[Doğukan Atakul](/maintainers/dogukanatakul)[@dogukanatakul](https://github.com/dogukanatakul)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[ayesh/composer-preload

Preload your sweet sweet code to opcache with a composer command, making your code faster to run

209126.9k](/packages/ayesh-composer-preload)[alexwight/php-signalr-client

Signal R Client

2329.3k](/packages/alexwight-php-signalr-client)

PHPackages © 2026

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