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

ActiveLibrary

streetxhasu/htmltoopenxml
=========================

Convert HTML to OpenOfficeXML

0.2.0(2y ago)045LGPL-3.0PHPPHP ^5.4 || ^7.0 || ^7.1 || ^7.2 || ^8.0 || ^8.1

Since Oct 10Pushed 2y agoCompare

[ Source](https://github.com/StreetXHasu/HTMLtoOpenXML)[ Packagist](https://packagist.org/packages/streetxhasu/htmltoopenxml)[ RSS](/packages/streetxhasu-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 rkorebrits/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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

949d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab1bfb3cbe7d8224bbb1260591cb1030df139e190784d31e438158a58f11a7bc?d=identicon)[StreetXHasu](/maintainers/StreetXHasu)

---

Top Contributors

[![rkorebrits](https://avatars.githubusercontent.com/u/3765592?v=4)](https://github.com/rkorebrits "rkorebrits (4 commits)")[![crsohara](https://avatars.githubusercontent.com/u/2795606?v=4)](https://github.com/crsohara "crsohara (1 commits)")[![ffmad](https://avatars.githubusercontent.com/u/1488633?v=4)](https://github.com/ffmad "ffmad (1 commits)")[![StreetXHasu](https://avatars.githubusercontent.com/u/69196228?v=4)](https://github.com/StreetXHasu "StreetXHasu (1 commits)")

---

Tags

htmlOOXML

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/streetxhasu-htmltoopenxml/health.svg)](https://phpackages.com/packages/streetxhasu-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)
