PHPackages                             mrstacy/html2mht - 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. mrstacy/html2mht

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

mrstacy/html2mht
================

Convert Html into MHT archive

1.0.0(7y ago)3183proprietaryPHPPHP ^7.1CI failing

Since May 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mrstacy/html2mht)[ Packagist](https://packagist.org/packages/mrstacy/html2mht)[ RSS](/packages/mrstacy-html2mht/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

HTML 2 MHT
==========

[](#html-2-mht)

This is a library to convert an html page into an MHT archive.

Dependencies
------------

[](#dependencies)

PHP &gt;=7.1

Install library via composer:
-----------------------------

[](#install-library-via-composer)

```
composer require mrstacy/html2mht

```

Usage:
------

[](#usage)

```
$html2mht = new Html2Mht();
$html2mht->generateMhtFile();

```

Running Tests locally:
----------------------

[](#running-tests-locally)

In project root run the following to run tests

```
php vendor/phpunit/phpunit/phpunit

```

Known Issues:
-------------

[](#known-issues)

- This only runs against local html files (not a URL)
- This does not include files that aren't linked directly from the main html file (IE: If an image is linked in the css file, it won't be included)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2026baac9ec76ed7cb1a86467b29eac4a28784fe8014c60cf0386414fa152e77?d=identicon)[mrstacy](/maintainers/mrstacy)

---

Top Contributors

[![mrstacy](https://avatars.githubusercontent.com/u/32468346?v=4)](https://github.com/mrstacy "mrstacy (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mrstacy-html2mht/health.svg)

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

###  Alternatives

[afsakar/filament-leaflet-map-picker

A Filament Forms component that provides an interactive Leaflet map for selecting and storing geographical coordinates.

387.2k](/packages/afsakar-filament-leaflet-map-picker)

PHPackages © 2026

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