xjuvi/htmltoopenxml

Convert HTML to OpenOfficeXML

Maintainers

Package info

github.com/xJuvi/HTMLtoOpenXML

pkg:composer/xjuvi/htmltoopenxml

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v2.0.0 2026-03-29 15:02 UTC

This package is auto-updated.

Last update: 2026-04-29 15:23:22 UTC


README

Forked from https://github.com/ffmad/HTMLtoOpenXML

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

composer require xjuvi/htmltoopenxml

WHAT H2OXML CAN DO

For now it can deal with :

  • Paragraphs
  • Bold, italic and underlined text (<strong|b|em|i|u>)
  • Bullet lists

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

HOW TO USE IT

$parser = new HTMLtoOpenXML\Parser();

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