PHPackages                             jafarili/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. jafarili/yii2-telegram-log

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

jafarili/yii2-telegram-log
==========================

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

1.0.0(5y ago)08BSD-3-ClausePHP

Since Jan 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Jafarili/yii2-telegram-log)[ Packagist](https://packagist.org/packages/jafarili/yii2-telegram-log)[ RSS](/packages/jafarili-yii2-telegram-log/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (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

```
composer require jafarili/yii2-telegram-log

```

or add below line to the require section of composer.json file and then run `composer update`

```
"jafarili/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' => 'Jafarili\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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

1933d ago

### Community

Maintainers

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

---

Tags

logyii2bottelegram

### Embed Badge

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

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

###  Alternatives

[airani/yii2-telegram-log

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

1655.9k](/packages/airani-yii2-telegram-log)[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)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3456.3k](/packages/lav45-yii2-activity-logger)

PHPackages © 2026

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