PHPackages                             kavalar/yii2-telegram-bot - 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. kavalar/yii2-telegram-bot

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

kavalar/yii2-telegram-bot
=========================

Yii2 extensions for telegram bot service from kalavar/telegram\_bot package

0.1(4y ago)023MITPHPPHP ^7.0.0

Since Aug 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/apuc/yii2-telegram-bot)[ Packagist](https://packagist.org/packages/kavalar/yii2-telegram-bot)[ RSS](/packages/kavalar-yii2-telegram-bot/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

yii2-telegram-bot
=================

[](#yii2-telegram-bot)

Yii2 Extension that using [kavalar/telegram\_bot](https://github.com/apuc/telegram_bot)

Using
=====

[](#using)

Add your component inside the config/main.php

```
return [
    'components' => [
        'telegram_bot' => [
              'class' => 'kavalar\yii2-telegram-bot\TelegramBotApi',
              'templates' => [
                    'Hello' => "Hello ~name~",
                    'Bye' => "Bye ~name~",
               ]
        ]
];
```

And config/main-local.php

```
return [
    'components' => [
        'telegram_bot' => [
              'telegramBotToken' => "Your bot Token",
              'telegramChatId' => "Chat id if needed",
        ]
];
```

Use like component

```
...
    $properties = [
        'name' => 'Jhon'
    ];
    \Yii::$app->telegram_bot->sendRenderedMessage('Hello', $properties);

    //specify chat id
    \Yii::$app->telegram_bot->sendRenderedMessage('Hello', $properties, 123123123);

    //if there is no properties in template
    \Yii::$app->telegram_bot->sendRenderedMessage('Hello');
...
```

For details about templates and properties look [kavalar/telegram\_bot docs](https://github.com/apuc/telegram_bot#__constructtemplates)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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

1720d ago

### Community

Maintainers

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

---

Top Contributors

[![IvanivAnton](https://avatars.githubusercontent.com/u/32462360?v=4)](https://github.com/IvanivAnton "IvanivAnton (3 commits)")

### Embed Badge

![Health badge](/badges/kavalar-yii2-telegram-bot/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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