2017 © Pedro Peláez
 

library mht2html

MHT to HTML converter

image

andyhu/mht2html

MHT to HTML converter

  • Friday, May 31, 2013
  • by andyhu
  • Repository
  • 2 Watchers
  • 11 Stars
  • 29 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Mht to HTML

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

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();

The Versions

31/05 2013

dev-master

9999999-dev http://github.com/andyhu/mht2html

MHT to HTML converter

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

mht mht2html