PHPackages                             airani/yii2-telegram-log - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. airani/yii2-telegram-log

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

airani/yii2-telegram-log
========================

Yii 2.0 telegram log target, send logs to the telegram chats or channels

1.0(9y ago)1655.9k↓17.4%7BSD-3-ClausePHP

Since Jul 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/airani/yii2-telegram-log)[ Packagist](https://packagist.org/packages/airani/yii2-telegram-log)[ RSS](/packages/airani-yii2-telegram-log/feed)WikiDiscussions master Synced 1mo ago

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

Yii 2.0 Telegram Log Target
===========================

[](#yii-20-telegram-log-target)

Yii 2.0 telegram log target, sends selected log messages to the specified telegram chats or channels

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require -vv --prefer-dist airani/yii2-telegram-log

```

or add below line to the require section of composer.json file and then run `php composer.phar update -vv --prefer-dist --profile`

```
"airani/yii2-telegram-log": "*"

```

How To Use
----------

[](#how-to-use)

You should set [telegram bot token](https://core.telegram.org/bots#botfather) and chatId in your config file like below code:

```
'log' => [
    'targets' => [
        [
            'class' => 'airani\log\TelegramTarget',
            'levels' => ['error'],
            'botToken' => '123456:abcde', // bot token secret key
            'chatId' => '123456', // chat id or channel username with @ like 12345 or @channel
        ],
    ],
],

```

Changelog
---------

[](#changelog)

### 1.0

[](#10)

- First version

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3596d ago

### Community

Maintainers

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

---

Top Contributors

[![airani](https://avatars.githubusercontent.com/u/438573?v=4)](https://github.com/airani "airani (2 commits)")

---

Tags

logyii2bottelegram

### Embed Badge

![Health badge](/badges/airani-yii2-telegram-log/health.svg)

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

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、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).

14642.7k1](/packages/guanguans-laravel-exception-notify)[jacklul/monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format

2364.7k1](/packages/jacklul-monolog-telegram)

PHPackages © 2026

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