Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

dzcpy/mht2html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Mht to HTML

A fast memory effecient PHP class to convert MHT file to HTML (and images)

Usage:

require('MthToHtml.php');
$mth = new MhtToHtml('./mthfile.mht', './output' /* output directory, default to './html' */);

// optional, save images using images' md5 as name, around 2 times slower but can make sure there's no duplicate images saved
// $mth->setReplaceImageName(true);

$time = microtime(true);
$mth->parse();
$time = microtime(true) - $time;
echo 'Time Used: ', $time, PHP_EOL, 'Peak Memory:', memory_get_peak_usage();

About

PHP class to convert MHT file to HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages