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

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

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

Convert HTML to OpenOfficeXML

0.2.0(2y ago)050LGPL-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 today

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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

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

997d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/69196228?v=4)[StreetXHasu](/maintainers/StreetXHasu)[@StreetXHasu](https://github.com/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

[masterminds/html5

An HTML5 parser and serializer.

1.8k269.7M320](/packages/masterminds-html5)[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k32.2M297](/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.5k8.2M130](/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.7M65](/packages/sunra-php-simple-html-dom-parser)[imangazaliev/didom

Simple and fast HTML parser

2.2k2.5M72](/packages/imangazaliev-didom)[querypath/querypath

HTML/XML querying and processing (like jQuery)

8367.1M27](/packages/querypath-querypath)

PHPackages © 2026

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