Skip to content

dogukanatakul/docx-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docx-to-HTML

Source: https://github.com/nadirhamid/Docx-to-HTML

Converts .docx files to HTML

This is a PHP class that will convert your .docx files to HTML. It is by far not perfect, but will handle most things decently.

This class requires the following:

Composer install

composer require dogukanatakul/docx-to-html

###How to use

include('./docx_reader.php');

$doc = new Docx_reader();
$doc->setFile('./sample.docx');

if(!$doc->get_errors()) {
    $html = $doc->to_html();
    $plain_text = $doc->to_plain_text();

    echo $html;
} else {
    echo implode(', ',$doc->get_errors());
}
echo "\n";

About

docx-to-html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published