PHPackages                             ph-7/html-to-text - 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. ph-7/html-to-text

ActiveLibrary

ph-7/html-to-text
=================

Lightweight package to convert HTML code to plain text (handy for plain text email format).

v2.0.1(2y ago)108.2k↓46.4%2MITPHP &gt;=7.4.0

Since Apr 18Compare

[ Source](https://github.com/pH-7/Html2Text)[ Packagist](https://packagist.org/packages/ph-7/html-to-text)[ Docs](https://github.com/pH-7)[ GitHub Sponsors](https://github.com/pH-7)[ Fund](https://ko-fi.com/phenry)[ RSS](/packages/ph-7-html-to-text/feed)WikiDiscussions Synced 1mo ago

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

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/pH-7/Html2Text).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Every ~139 days

Total

4

Last Release

1063d ago

Major Versions

v1.1.0 → v2.0.02022-04-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6d95da236687f1dca4f7d70d60037c70ef217120ea195df23a39a412ba594e0?d=identicon)[ph-7](/maintainers/ph-7)

---

Tags

converthtmlconvertertextplain texthtml2texthtml-to-textconvertor

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ph-7-html-to-text/health.svg)

```
[![Health](https://phpackages.com/badges/ph-7-html-to-text/health.svg)](https://phpackages.com/packages/ph-7-html-to-text)
```

###  Alternatives

[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48419.5M74](/packages/soundasleep-html2text)[texy/texy

Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated against spambots), national typographic single and double quotation marks, ellipses, em dashes, dimension sign, nonbreakable spaces (e.g. in phone numbers), acronyms, arrows and many others. Texy code can optionally contain HTML tags.

161838.9k15](/packages/texy-texy)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5234.2M75](/packages/ckeditor-ckeditor)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1697.5M105](/packages/tinymce-tinymce)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)

PHPackages © 2026

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