PHPackages                             jambtc/yii2-telegram-notify - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. jambtc/yii2-telegram-notify

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

jambtc/yii2-telegram-notify
===========================

Yii2-oriented Telegram onboarding and notification toolkit

v0.1.0(2mo ago)0594↓100%MITPHPPHP &gt;=7.4.0

Since Mar 5Pushed 2mo agoCompare

[ Source](https://github.com/jambtc/yii2-telegram-notify)[ Packagist](https://packagist.org/packages/jambtc/yii2-telegram-notify)[ Docs](https://github.com/jambtc/yii2-telegram-notify)[ RSS](/packages/jambtc-yii2-telegram-notify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

yii2-telegram-notify
====================

[](#yii2-telegram-notify)

Yii2-oriented Telegram onboarding and notification toolkit.

Install
-------

[](#install)

```
composer require jambtc/yii2-telegram-notify:dev-main
```

Yii2 usage
----------

[](#yii2-usage)

Add component in `config/web.php`:

```
'components' => [
    'telegramNotify' => [
        'class' => Jambtc\Yii2TelegramNotify\YiiTelegramComponent::class,
        'botToken' => env('TELEGRAM_BOT_TOKEN', ''),
        'defaultChatId' => env('TELEGRAM_CHAT_ID', ''),
    ],
],
```

Send a message:

```
/** @var Jambtc\Yii2TelegramNotify\YiiTelegramComponent $tg */
$tg = Yii::$app->telegramNotify;
$result = $tg->sendText('Hello from Yii2');
// ['ok' => bool, 'error' => string|null]
```

Verify bot and build onboarding link:

```
$verify = $tg->verifyBot();
$link = $tg->buildDeepLink('@mybot', 1, 'binance');
$chat = $tg->findChatForTokenHash($link['token_hash']);
```

Exposed classes
---------------

[](#exposed-classes)

- `TelegramClientInterface`, `TelegramClient`
- `TelegramOnboardingInterface`, `TelegramOnboardingService`
- `TelegramNotifierInterface`, `TelegramNotifier`
- `YiiTelegramComponent`

Test
----

[](#test)

```
composer install
vendor/bin/phpunit
```

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance86

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

68d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47701ba7eb67ed045c5969c8b4a6849133d6e8bde59c0a31d3b500ac38640b6d?d=identicon)[jambtc](/maintainers/jambtc)

---

Top Contributors

[![jambtc](https://avatars.githubusercontent.com/u/30697838?v=4)](https://github.com/jambtc "jambtc (1 commits)")

---

Tags

notificationyii2bottelegramonboarding

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jambtc-yii2-telegram-notify/health.svg)

```
[![Health](https://phpackages.com/badges/jambtc-yii2-telegram-notify/health.svg)](https://phpackages.com/packages/jambtc-yii2-telegram-notify)
```

###  Alternatives

[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[loveorigami/yii2-notification-wrapper

This module for renders a message from session flash (with ajax, pjax support and etc.)

77199.7k5](/packages/loveorigami-yii2-notification-wrapper)[odaialali/yii2-toastr

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1486.3k](/packages/odaialali-yii2-toastr)[diecoding/yii2-toastr

Simple flash toastr notifications for Yii2

1328.8k](/packages/diecoding-yii2-toastr)

PHPackages © 2026

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