PHPackages                             dement0r/tg-messenger - 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. dement0r/tg-messenger

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

dement0r/tg-messenger
=====================

A simple Telegram message sending composer package

09PHP

Since Nov 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/DEMENT0R/tg-messenger)[ Packagist](https://packagist.org/packages/dement0r/tg-messenger)[ RSS](/packages/dement0r-tg-messenger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TG Messenger
============

[](#tg-messenger)

A simple Telegram message sending composer package

### Installation

[](#installation)

With composer:

`composer require dement0r/tg-messenger:dev-master`

### Requirements

[](#requirements)

- PHP 7.4 or higher
- ext-curl
- ext-json

### Using

[](#using)

Create object:

`$bot = new Messenger('BOT_TOKEN')`

Set webhook:

`$bot->setWebhook('url' ?? null)`

Get webhook info:

`$bot->getWebhook()`

Removing webhook:

`$bot->removeWebhook()`

Getting message from webhook url:

`$bot->getMessage()`

Sending message:

`$bot->sendMessage('chat_id', 'text', 'message_id', $markupArray)`

Markup example:

```
$markupArray = [
    'keyboard'          => [['Info', 'Test', 'Help']],
    'one_time_keyboard' => false,
    'resize_keyboard'   => true,
],

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e7be4372485d388a50d3e55ba4d318b68421234f0fb8f6420f8c59265f465b90?d=identicon)[DEMENT0R](/maintainers/DEMENT0R)

---

Top Contributors

[![DEMENT0R](https://avatars.githubusercontent.com/u/3989733?v=4)](https://github.com/DEMENT0R "DEMENT0R (17 commits)")

### Embed Badge

![Health badge](/badges/dement0r-tg-messenger/health.svg)

```
[![Health](https://phpackages.com/badges/dement0r-tg-messenger/health.svg)](https://phpackages.com/packages/dement0r-tg-messenger)
```

###  Alternatives

[marcelog/pami

Asterisk Manager Interface (AMI) client for PHP, event driven, object oriented

415750.6k1](/packages/marcelog-pami)[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

395798.1k10](/packages/spicyweb-craft-neo)[geedmo/yamm3

Yet another megamenu for Bootstrap 3.x

1.2k12.6k](/packages/geedmo-yamm3)[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[fusonic/opengraph

PHP library for consuming and publishing Open Graph resources.

104373.0k4](/packages/fusonic-opengraph)[jn-jairo/laravel-ngrok

Share Laravel application with ngrok.

95204.0k1](/packages/jn-jairo-laravel-ngrok)

PHPackages © 2026

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