PHPackages                             lucasaba/h2open-xml - 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. lucasaba/h2open-xml

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

lucasaba/h2open-xml
===================

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

0.0.6(6y ago)2163GPL-3.0-or-laterPHPPHP ^7.0CI failing

Since May 1Pushed 6y ago1 watchersCompare

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

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

Porting of

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

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

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.

WHAT H2OXML CAN DO
------------------

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

For now it can deals with :

Bold, italic and underlined text Bulleted lists ... Many more can be done (the wysiwyg editor had only simple functions)

HOW TO USE IT
-------------

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

Load the script .../HTMLtoOpenXML.php';

Then if your html code is in the variable $html, use this function:

HTMLtoOpenXML::getInstance()-&gt;fromHTML($article)

You will obtain a string formated in OpenXML.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

5

Last Release

2253d ago

PHP version history (2 changes)0.0.2PHP ^7.0

0.0.4PHP 7.\*

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/206325?v=4)[Luca Saba](/maintainers/lucasaba)[@lucasaba](https://github.com/lucasaba)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lucasaba-h2open-xml/health.svg)

```
[![Health](https://phpackages.com/badges/lucasaba-h2open-xml/health.svg)](https://phpackages.com/packages/lucasaba-h2open-xml)
```

###  Alternatives

[tarfin-labs/easy-pdf

Makes pdf processing easy.

1719.9k](/packages/tarfin-labs-easy-pdf)[akeneo-labs/excel-connector-bundle

Akeneo PIM Excel connector bundle

166.4k](/packages/akeneo-labs-excel-connector-bundle)

PHPackages © 2026

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