PHPackages                             nineteenfeet/nf-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nineteenfeet/nf-html-to-text

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

nineteenfeet/nf-html-to-text
============================

Simple conversion of HTML to plain text

1.1(12y ago)7354.4k↓38.1%11MITPHPPHP &gt;=5.3.3

Since Jul 30Pushed 12y ago1 watchersCompare

[ Source](https://github.com/19FT/NFHtmlToText)[ Packagist](https://packagist.org/packages/nineteenfeet/nf-html-to-text)[ Docs](http://github.com/19ft/NFNumberToWord)[ RSS](/packages/nineteenfeet-nf-html-to-text/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (3)Used By (1)

\#NFHtmlToText

Simplistic conversion of HTML to plain text

\##Usage

```
$htmlToText = new \NF\HtmlToText();
$textString = $htmlToText->convert($htmlString);
```

Installation
------------

[](#installation)

Installation via composer:

```
php composer.phar require nineteenfeet/nf-html-to-text 1.*
```

For more information have a look at [composer docs](http://getcomposer.org)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

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

Every ~0 days

Total

2

Last Release

4723d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33135?v=4)[Rob Allen](/maintainers/akrabat)[@akrabat](https://github.com/akrabat)

![](https://avatars.githubusercontent.com/u/22234250?v=4)[Nineteen Feet](/maintainers/19ft)[@19FT](https://github.com/19FT)

---

Top Contributors

[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (5 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (1 commits)")[![kusozayka](https://avatars.githubusercontent.com/u/363388?v=4)](https://github.com/kusozayka "kusozayka (1 commits)")

---

Tags

htmltextplain texthtml2text

### Embed Badge

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

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

###  Alternatives

[froala/wysiwyg-editor

A beautiful jQuery WYSIWYG HTML rich text editor. High performance and modern design make it easy to use for developers and loved by users.

5.4k320.3k5](/packages/froala-wysiwyg-editor)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5244.3M80](/packages/ckeditor-ckeditor)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1708.1M121](/packages/tinymce-tinymce)[unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

387766.8k5](/packages/unisharp-laravel-ckeditor)[ph-7/html-to-text

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

129.3k7](/packages/ph-7-html-to-text)[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.

161862.7k15](/packages/texy-texy)

PHPackages © 2026

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