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

ActiveLibrary

wpsocio/telegram-format-text
============================

HTML to Text converter/formatter for Telegram Bot API

v1.0.2(3mo ago)3253GPL-3.0-or-laterPHP

Since Jan 26Pushed 3mo ago1 watchersCompare

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

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

WPSocio\\TelegramFormatText
===========================

[](#wpsociotelegramformattext)

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).

Usage
-----

[](#usage)

```
composer require wpsocio/telegram-format-text
```

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

$html = 'Some html here';

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

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

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

[](#requirements)

- `PHP >= 8.0`

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance82

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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 ~374 days

Total

3

Last Release

94d 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 (4 commits)")

---

Tags

formatterhtmltelegramtext

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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