andyhu / mht2html
This package is abandoned and no longer maintained.
No replacement package was suggested.
MHT to HTML converter
dev-master
2013-05-31 09:13 UTC
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2024-04-08 11:22:40 UTC
README
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();