ericzaev/htmltoopenxml

Convert HTML to OpenOfficeXML

dev-master 2025-02-06 10:31 UTC

This package is auto-updated.

Last update: 2025-09-06 11:52:29 UTC


README

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

A simple PHP script supporting php 8.0 that takes HTML code and converts it into open XML code. (for Docx)

INSTALLATION

composer require ericzaev/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);