PHPackages                             wptelegram/format-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. wptelegram/format-text

Abandoned → [wpsocio/telegram-format-text](/?search=wpsocio%2Ftelegram-format-text)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

wptelegram/format-text
======================

HTML to Text converter/formatter for Telegram Bot API

v1.1.0(2y ago)095MITHTML

Since Jan 23Pushed 2y agoCompare

[ Source](https://github.com/wpsocio/wptelegram-format-text)[ Packagist](https://packagist.org/packages/wptelegram/format-text)[ RSS](/packages/wptelegram-format-text/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (4)Versions (11)Used By (0)

WPTelegram\\FormatText
======================

[](#wptelegramformattext)

HTML to Text converter/formatter for [Telegram Bot API](https://core.telegram.org/bots/api#formatting-options)

Inspired by [thephpleague/html-to-markdown](https://github.com/thephpleague/html-to-markdown).

Abandonned!
===========

[](#abandonned)

Please use [wpsocio/telegram-format-text](https://github.com/wpsocio/telegram-format-text)

Usage
-----

[](#usage)

```
composer require wptelegram/format-text
```

```
require_once __DIR__ . '/autoload-static.php';

// Or this for usage in WordPress
require_once __DIR__ . '/autoload-wp.php';

$html = 'Some html here';

$options = [
	'format_to' => 'Markdown',
];
$converter = new \WPTelegram\FormatText\HtmlConverter( $options );

// The text is now safe to be sent to Telegram
$text = $converter->convert( $html );
```

**NOTES:**

- Do not require conditionally, like `if ( class_exists() )`.
- It's safe to include it directly.
- Library takes care of its multiple versions being loaded.
- It always loads the latest version.

Requirements
------------

[](#requirements)

- `PHP >= 7.0`

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Every ~33 days

Recently: every ~66 days

Total

10

Last Release

956d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/112321edeeaa9cf3cced45d0303c814b3cff9d1a9cf1fe085ad4004cec938e28?d=identicon)[irshadahmad21](/maintainers/irshadahmad21)

---

Top Contributors

[![irshadahmad21](https://avatars.githubusercontent.com/u/94346512?v=4)](https://github.com/irshadahmad21 "irshadahmad21 (34 commits)")

###  Code Quality

TestsPest

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wptelegram-format-text/health.svg)

```
[![Health](https://phpackages.com/badges/wptelegram-format-text/health.svg)](https://phpackages.com/packages/wptelegram-format-text)
```

###  Alternatives

[miloschuman/yii-highcharts

Highcharts adapter for the Yii Framework

3481.7k](/packages/miloschuman-yii-highcharts)

PHPackages © 2026

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