ericzaev/htmltoopenxml

Convert HTML to OpenOfficeXML

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 31

pkg:composer/ericzaev/htmltoopenxml

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

This package is auto-updated.

Last update: 2026-02-06 12:39:55 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);