PHPackages                             tioffs/fentities - 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. tioffs/fentities

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

tioffs/fentities
================

Telegram core api formate message html

v1.0(6y ago)416MITPHPPHP &gt;=7.3

Since Aug 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tioffs/fentities)[ Packagist](https://packagist.org/packages/tioffs/fentities)[ Docs](https://github.com/tioffs/fentities)[ RSS](/packages/tioffs-fentities/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Telegram formate message entities html [![License](https://camo.githubusercontent.com/1a0b4c85bbbd542e0f43e33a1e2fdd26450ea6daf84f79595eecb6a28d4f80db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74696f6666732f66656e746974696573)](https://github.com/tioffs/fentities/blob/master/LICENSE)
==============================================================================================================================================================================================================================================================================================================================

[](#telegram-formate-message-entities-html-)

[![Downloads](https://camo.githubusercontent.com/663a1493b16130cacfb13d32197628176f6689943e2a2f96a1c0a0e5183e9465/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f74696f6666732f66656e746974696573)](https://packagist.org/packages/tioffs/fentities)[![Telegram](https://camo.githubusercontent.com/a454e4b24d17a3659df1c2e7e93696ec267c1fae2f08d735a669af68c386c136/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f54656c656772616d2d4a6f696e253230436861742d626c75652e7376673f7374796c653d666c6174)](https://t.me/joinchat/C9JmzQ-fc3SKXI0D-9h-uw)

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

[](#installation)

**Using Composer:**

```
composer require tioffs/fentities

```

Supports entities
-----------------

[](#supports-entities)

- messageEntityItalic
- messageEntityBold
- messageEntityCode
- messageEntityPre
- messageEntityStrike
- messageEntityUnderline
- messageEntityBlockquote
- messageEntityTextUrl
- messageEntityMention
- messageEntityUrl

Example
-------

[](#example)

```
$message  = [
                "_" => "message",
                "out" => false,
                "mentioned" => false,
                "media_unread" => false,
                "silent" => true,
                "post" => true,
                "from_scheduled" => false,
                "legacy" => false,
                "id" => 83943,
                "to_id" => [
                    "_" => "peerChannel",
                    "channel_id" => 123456789
                ],
                "date" => 1565361063,
                "message" => "PHP is a popular general-purpose scripting language that is especially suited to web development. http://php.net",
                "media" => [],
                "entities" => [
                    [
                        "_" => "messageEntityBold",
                        "offset" => 0,
                        "length" => 96
                    ],
                    [
                        "_" => "messageEntityUrl",
                        "offset" => 98,
                        "length" => 14
                    ]
                ],
                "views" => 34566
            ];

require_once 'vendor/autoload.php';
$text = Formats\Message::html($message);
```

Result
------

[](#result)

```
PHP is a popular general-purpose scripting language that
is especially suited to web development.
http://php.net
```

---

Made with ♥ from the @tioffs

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2517d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12449558?v=4)[tioffs](/maintainers/tioffs)[@tioffs](https://github.com/tioffs)

---

Top Contributors

[![tioffs](https://avatars.githubusercontent.com/u/12449558?v=4)](https://github.com/tioffs "tioffs (5 commits)")

---

Tags

entitiesformatemessagetelegramtelegram-apihtmltelegramformate

### Embed Badge

![Health badge](/badges/tioffs-fentities/health.svg)

```
[![Health](https://phpackages.com/badges/tioffs-fentities/health.svg)](https://phpackages.com/packages/tioffs-fentities)
```

###  Alternatives

[spatie/laravel-html

A fluent html builder

8307.1M91](/packages/spatie-laravel-html)[ckeditor/ckeditor

JavaScript WYSIWYG web text editor.

5244.3M79](/packages/ckeditor-ckeditor)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21421.8M20](/packages/caxy-php-htmldiff)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

28410.1M49](/packages/yajra-laravel-datatables-html)[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3384.0M34](/packages/wa72-htmlpagedom)[tinymce/tinymce

Web based JavaScript HTML WYSIWYG editor control.

1707.9M118](/packages/tinymce-tinymce)

PHPackages © 2026

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