PHPackages                             charl4e/htmltoopenxml - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. charl4e/htmltoopenxml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

charl4e/htmltoopenxml
=====================

Convert HTML to OpenOfficeXML

0.1.11(7y ago)053LGPL-3.0PHPPHP ^5.4 || ^7.0 || ^7.1 || ^7.2

Since Apr 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/charl4e/htmlofficexml)[ Packagist](https://packagist.org/packages/charl4e/htmltoopenxml)[ RSS](/packages/charl4e-htmltoopenxml/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

H2OXML : HTML to OpenXML Converter
==================================

[](#h2oxml--html-to-openxml-converter)

Forked from

Simple PHP script which take HTML code and transform it into OpenXML Code. (for Docx)

This is the very first version. I coded this because i wanted to put text from a WYSIWYG editor into a .docx document.

INSTALLATION
============

[](#installation)

`composer require charl4e/htmltoopenxml`

WHAT H2OXML CAN DO
==================

[](#what-h2oxml-can-do)

For now it can deal with :

- Paragraphs
- Bold, italic and underlined text (&lt;strong|b|em|i|u&gt;)
- Bullet lists

Many more can be done (the wysiwyg editor had only simple functions)

HOW TO USE IT
=============

[](#how-to-use-it)

```
$parser = new HTMLtoOpenXML\Parser();

$ooXml = $parser->fromHTML($html);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

3

Last Release

2588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a940afd481e9cee05a293440350910629dc9770229b99ffbadfab05e917d0b2?d=identicon)[charl4e](/maintainers/charl4e)

---

Top Contributors

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

---

Tags

htmlOOXML

### Embed Badge

![Health badge](/badges/charl4e-htmltoopenxml/health.svg)

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

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k28.6M199](/packages/league-html-to-markdown)[paquettg/php-html-parser

An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.

2.4k7.9M123](/packages/paquettg-php-html-parser)[sunra/php-simple-html-dom-parser

Composer adaptation of: A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.

1.3k9.4M61](/packages/sunra-php-simple-html-dom-parser)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.3M64](/packages/imangazaliev-didom)[querypath/querypath

HTML/XML querying and processing (like jQuery)

8197.0M27](/packages/querypath-querypath)

PHPackages © 2026

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