PHPackages                             threeheartsdigital/html-to-plaintext-conversion-service - 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. threeheartsdigital/html-to-plaintext-conversion-service

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

threeheartsdigital/html-to-plaintext-conversion-service
=======================================================

Converts HTML to formatted plain text

v1.0.0(2y ago)0126.6k↓14.6%GPL-2.0-or-laterPHPPHP ^8.2

Since Feb 1Pushed 2y agoCompare

[ Source](https://github.com/threeheartsdigital/html-to-plaintext-conversion-service)[ Packagist](https://packagist.org/packages/threeheartsdigital/html-to-plaintext-conversion-service)[ RSS](/packages/threeheartsdigital-html-to-plaintext-conversion-service/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Html to plaintext conversion service
====================================

[](#html-to-plaintext-conversion-service)

A PHP library for converting HTML to formatted plain text.

Basic Usage
-----------

[](#basic-usage)

```
$html = (new \ThreeHeartsDigital\HtmlToPlaintextConversionService())->setHtml('Hello, &quot;world&quot;');

echo $html->getPlainText();  // Hello, "WORLD"
```

History
-------

[](#history)

This library started life on the blog of Jon Abernathy

A number of projects picked up the library and started using it - among those was RoundCube mail. They made a number of updates to it over time to suit their webmail client.

Now it has been extracted as a standalone library. Hopefully it can be of use to others.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68% 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

838d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32f3dd495b78a09ad1fcb760639ada61c2d4b2a84b4ef8a611476931acda76fb?d=identicon)[ThreeHeartsDigital](/maintainers/ThreeHeartsDigital)

---

Top Contributors

[![mtibben](https://avatars.githubusercontent.com/u/980499?v=4)](https://github.com/mtibben "mtibben (83 commits)")[![andrewnicols](https://avatars.githubusercontent.com/u/370047?v=4)](https://github.com/andrewnicols "andrewnicols (6 commits)")[![pascalbaljet](https://avatars.githubusercontent.com/u/8403149?v=4)](https://github.com/pascalbaljet "pascalbaljet (4 commits)")[![cameorn1730](https://avatars.githubusercontent.com/u/46586436?v=4)](https://github.com/cameorn1730 "cameorn1730 (3 commits)")[![bscutt](https://avatars.githubusercontent.com/u/1151113?v=4)](https://github.com/bscutt "bscutt (3 commits)")[![pstast](https://avatars.githubusercontent.com/u/5357442?v=4)](https://github.com/pstast "pstast (2 commits)")[![jimjag](https://avatars.githubusercontent.com/u/84076?v=4)](https://github.com/jimjag "jimjag (2 commits)")[![kasperg](https://avatars.githubusercontent.com/u/73966?v=4)](https://github.com/kasperg "kasperg (2 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![on2](https://avatars.githubusercontent.com/u/7304119?v=4)](https://github.com/on2 "on2 (1 commits)")[![orlitzky](https://avatars.githubusercontent.com/u/1432135?v=4)](https://github.com/orlitzky "orlitzky (1 commits)")[![scaytrase](https://avatars.githubusercontent.com/u/6578413?v=4)](https://github.com/scaytrase "scaytrase (1 commits)")[![sgrodzicki](https://avatars.githubusercontent.com/u/712836?v=4)](https://github.com/sgrodzicki "sgrodzicki (1 commits)")[![Sylry](https://avatars.githubusercontent.com/u/9798412?v=4)](https://github.com/Sylry "Sylry (1 commits)")[![Synchro](https://avatars.githubusercontent.com/u/81561?v=4)](https://github.com/Synchro "Synchro (1 commits)")[![vargaandrea](https://avatars.githubusercontent.com/u/1370800?v=4)](https://github.com/vargaandrea "vargaandrea (1 commits)")[![ajouve](https://avatars.githubusercontent.com/u/2337492?v=4)](https://github.com/ajouve "ajouve (1 commits)")[![wolfwolker](https://avatars.githubusercontent.com/u/1926137?v=4)](https://github.com/wolfwolker "wolfwolker (1 commits)")[![askumbhani66](https://avatars.githubusercontent.com/u/16553705?v=4)](https://github.com/askumbhani66 "askumbhani66 (1 commits)")[![dsas](https://avatars.githubusercontent.com/u/93301?v=4)](https://github.com/dsas "dsas (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/threeheartsdigital-html-to-plaintext-conversion-service/health.svg)

```
[![Health](https://phpackages.com/badges/threeheartsdigital-html-to-plaintext-conversion-service/health.svg)](https://phpackages.com/packages/threeheartsdigital-html-to-plaintext-conversion-service)
```

###  Alternatives

[smart-crowd/simple-sms-drivers

Addition providers for simple SMS laravel package

101.0k](/packages/smart-crowd-simple-sms-drivers)

PHPackages © 2026

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