PHPackages                             andyhu/mht2html - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. andyhu/mht2html

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

andyhu/mht2html
===============

MHT to HTML converter

24113

Since May 31Compare

[ Source](https://github.com/andyhu/mht2html)[ Packagist](https://packagist.org/packages/andyhu/mht2html)[ RSS](/packages/andyhu-mht2html/feed)WikiDiscussions Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Mht to HTML
===========

[](#mht-to-html)

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

Usage:
------

[](#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();

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46896513?v=4)[andyhu](/maintainers/andyhu)[@andyhu](https://github.com/andyhu)

---

Top Contributors

[![laravelcms-zz](https://avatars.githubusercontent.com/u/5847267?v=4)](https://github.com/laravelcms-zz "laravelcms-zz (18 commits)")

### Embed Badge

![Health badge](/badges/andyhu-mht2html/health.svg)

```
[![Health](https://phpackages.com/badges/andyhu-mht2html/health.svg)](https://phpackages.com/packages/andyhu-mht2html)
```

###  Alternatives

[google/cloud-functions-framework

Google Cloud Functions Framework for PHP

21315.8M](/packages/google-cloud-functions-framework)[aimeos/ai-client-html

Aimeos standard HTML frontend

1.1k355.0k16](/packages/aimeos-ai-client-html)[davidepastore/ipinfo

A wrapper around the ipinfo.io services

55117.6k2](/packages/davidepastore-ipinfo)[larva/laravel-whois

Whois Query Extension for Laravel.

1143.9k](/packages/larva-laravel-whois)[mpociot/chuck-norris-jokes

Create random Chuck Norris jokes.

251.2k](/packages/mpociot-chuck-norris-jokes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
