Search by

lucasaba / h2open-xml

lucasaba

This package is abandoned and no longer maintained. No replacement package was suggested.

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

Package info

github.com/lucasaba/H2OpenXML

pkg:composer/lucasaba/h2open-xml

Statistics

Installs: 174

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

0.0.6 2020-05-01 14:09 UTC

This package is auto-updated.

Last update: 2026-11-11 06:06:11 UTC


README

Porting of https://archive.codeplex.com/?p=h2openxml

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

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

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

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

HTMLtoOpenXML::getInstance()->fromHTML($article)

You will obtain a string formated in OpenXML.