bersyatina / htmltoopenxml
Convert HTML to OpenOfficeXML
Installs: 328
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 31
pkg:composer/bersyatina/htmltoopenxml
Requires
- php: ^5.4 || ^7.0 || ^7.1 || ^7.2 || ^8.3
This package is not auto-updated.
Last update: 2026-01-22 15:03:03 UTC
README
Forked from https://github.com/ffmad/HTMLtoOpenXML
A simple PHP script supporting php 8.3 that takes HTML code and converts it into open XML code. (for Docx)
INSTALLATION
composer require bersyatina/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);