PHPackages                             xjuvi/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. xjuvi/htmltoopenxml

ActiveLibrary

xjuvi/htmltoopenxml
===================

Convert HTML to OpenOfficeXML

v2.0.0(1mo ago)10LGPL-3.0PHPPHP ^5.4 || ^7.0 || ^7.1 || ^7.2 || ^8.0 || ^8.1

Since Mar 29Pushed 1mo agoCompare

[ Source](https://github.com/xJuvi/HTMLtoOpenXML)[ Packagist](https://packagist.org/packages/xjuvi/htmltoopenxml)[ RSS](/packages/xjuvi-htmltoopenxml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)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 xjuvi/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

37

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b1f3c616944599fb62c1d7e2ca4a78e7d5538edf3604f4c75e4808b0014cc4c?d=identicon)[xJuvi](/maintainers/xJuvi)

---

Top Contributors

[![rkorebrits](https://avatars.githubusercontent.com/u/3765592?v=4)](https://github.com/rkorebrits "rkorebrits (5 commits)")[![xJuvi](https://avatars.githubusercontent.com/u/31671206?v=4)](https://github.com/xJuvi "xJuvi (3 commits)")[![crsohara](https://avatars.githubusercontent.com/u/2795606?v=4)](https://github.com/crsohara "crsohara (1 commits)")[![esther-kfactor](https://avatars.githubusercontent.com/u/138565259?v=4)](https://github.com/esther-kfactor "esther-kfactor (1 commits)")[![ffmad](https://avatars.githubusercontent.com/u/1488633?v=4)](https://github.com/ffmad "ffmad (1 commits)")

---

Tags

htmlOOXML

### Embed Badge

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

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[rkorebrits/htmltoopenxml

Convert HTML to OpenOfficeXML

13115.5k1](/packages/rkorebrits-htmltoopenxml)

PHPackages © 2026

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