soundasleep/html2text
Convert HTML to readable plain text in PHP. soundasleep/html2text extracts meaningful content from messy markup, handling links, lists, tables and whitespace with configurable formatting—ideal for emails, scraping, logs and text-only previews.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bicpi/html-converter | 0.85 | PHP library for converting HTML to plain text, ideal for generating text parts of HTML emails. Includes Simple (strip_tags), Lynx (best results, keeps links), Html2Text, and Chain converter to pick the first available backend. | 11 | 12 | 13 | 0 | 0 | 0.5 | — | MIT | — | |
| html2text/html2text | 0.83 | — | 590 | 612 | 177 | 845K | 15 | 17.3 | 49.6 | — | 1 year ago | |
| bicpi/html-converter-bundle | 0.83 | — | 0 | 0 | 1 | 0 | 0 | 0.3 | — | — | 9 years ago | |
| sensiolabs/ansi-to-html | 0.83 | Convert ANSI-colored console output into an HTML5 fragment. Supports themes (e.g., Solarized), inline styles or CSS classes, can export theme CSS, and includes a Twig extension for easy use in templates. | 254 | 258 | 37 | 107K | 9 | 5.2 | 39.6 | MIT | — | |
| becklyn/search-text-transformer | 0.82 | Converts HTML into clean, searchable plain text for indexing with search engines like Elasticsearch. Use SearchTextTransformer to strip tags and normalize content, making page text suitable for full‑text search and highlighting. | 4 | 4 | 0 | 0 | 0 | 0.3 | — | BSD-3-Clause | 3 years ago | |
| s9e/text-formatter | 0.82 | PHP text formatting library with plugin support for BBCode, Markdown, HTML, and more. Includes predefined bundles, extensive documentation, and a JavaScript port for client-side preview and demos. Install via Composer and integrate customizable parsing/rendering. | 243 | 250 | 42 | 74K | 3 | 18.1 | 37.5 | MIT | 8 months ago | |
| nanopkg/laravel-bangla-text-converter | 0.82 | Laravel package to convert Bengali text between Unicode and Bijoy encodings. Use the BanglaTextConverter facade to quickly transform strings (toBijoy/toUnicode) in your app, with simple Composer install and test support. | 9 | 10 | 4 | 0 | 0 | 2.1 | 0.8 | MIT | 3 years ago | |
| masterminds/html5 | 0.81 | Standards-compliant HTML5 parser and serializer for PHP. Provides SAX-like event parsing, DOM tree building, namespace support, Composer install, and interoperability with QueryPath. Stable and widely used in production. | 1,781 | 1,804 | 120 | 9M | 29 | 48.9 | 71.5 | NOASSERTION | 1 month ago | |
| nickcernis/html-to-markdown | 0.81 | Convert HTML into clean, readable Markdown in PHP. Parse tags and structure into Markdown output with configurable rules, custom converters, and strong defaults—handy for scraping, email content, CMS migrations, and turning rich text into Markdown for storage or editing. | 1,900 | 1,895 | 215 | 8K | 14 | 30.0 | 18.2 | MIT | 3 years ago | |
| j0k3r/php-readability | 0.81 | Extracts the main article content and title from messy web pages in PHP. Improved fork of php-readability with tests, namespacing, and optional HTML cleanup via Tidy (or libxml). Supports PSR-3 logging for debugging. | 184 | 190 | 38 | 39K | 5 | 32.0 | 41.6 | Apache-2.0 | 3 weeks ago | |
| paquettg/php-html-parser | 0.81 | Fast, lightweight HTML parser for PHP that turns messy markup into a DOM-like tree. Crawl and scrape pages, query elements with CSS selectors, and extract text/attributes easily. Works with imperfect HTML and focuses on simple, fluent usage. | 2,401 | 2,448 | 468 | 92K | 54 | 43.7 | 47.4 | MIT | — | |
| apie/html-builders | 0.80 | HTML builder utilities for the Apie ecosystem. Provides internal components to generate and compose HTML fragments in PHP, used by other Apie packages. Developed in the Apie monorepo; limited standalone documentation available. | 0 | 0 | 0 | 5 | 0 | 0.0 | 10.8 | MIT | — | |
| knplabs/knp-markdown-bundle | 0.80 | — | 412 | 432 | 47 | 20K | 0 | 3.8 | 16.6 | MIT | 4 years ago | |
| yiisoft/html | 0.80 | Tools for dynamic server-side HTML generation: rich set of tag classes, custom tags, widgets (ButtonGroup, CheckboxList, RadioList), automatic HTML-encoding with NoEncode bypass, and an Html helper with static methods to build tags and widgets. | 58 | 58 | 23 | 27K | 6 | 25.2 | 43.8 | BSD-3-Clause | 2 months ago | |
| devanoxltd/php-html-parser | 0.80 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 24 | 0 | 2.5 | 19.6 | MIT | 11 months ago | |
| league/commonmark | 0.80 | Extensible PHP Markdown parser supporting the full CommonMark spec and GitHub-Flavored Markdown. Works with PHP 7.4+ (mbstring) and provides simple converters to turn Markdown into HTML with configurable safety options. | 2,968 | 3,010 | 214 | 12M | 21 | 58.2 | 69.8 | BSD-3-Clause | 3 days ago | |
| baudev/php-object-converter-bundle | 0.79 | — | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 7 years ago | |
| judev/php-htmltruncator | 0.79 | — | 26 | 28 | 6 | 4K | 3 | 1.0 | 29.6 | MIT | — | |
| becklyn/html-builder | 0.78 | Lightweight PHP HTML builder for composing elements and attribute strings. Create HtmlElement nodes, render with escaping by default, support boolean/null/false attribute rules, and inject trusted raw HTML via SafeMarkup when needed. | 2 | 2 | 0 | 150 | 0 | 1.8 | 23.6 | BSD-3-Clause | 4 years ago | |
| league/html-to-markdown | 0.78 | — | 1,900 | 1,915 | 215 | 1M | 14 | 30.0 | 46.6 | MIT | 3 years ago |
How can I help you explore Laravel packages today?