PHPackages                             kagatan/monolog-telegram - 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. kagatan/monolog-telegram

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

kagatan/monolog-telegram
========================

A handler for Monolog that sends messages to Telegram Channels. Laravel

v1.4(5y ago)212.6k↓21.1%3[1 PRs](https://github.com/kagatan/monolog-telegram/pulls)MITPHP

Since Aug 10Pushed 3y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

monolog-telegram
================

[](#monolog-telegram)

🔔 Telegram Handler which allows you log messages to telegram channels using bots for Laravel

Installation
============

[](#installation)

---

Install using composer:

```
composer require kagatan/monolog-telegram
```

Usage
=====

[](#usage)

Open up config/logging.php and find the channels key. Add the following channel to the list.

```
 'channels' => [
    'stack' => [
        'driver'   => 'stack',
        'channels' => ['single', 'telegram'],
    ],

    ....

    'telegram' => [
        'driver'  => 'custom',
        'via'     => Kagatan\MonologTelegram\TelegramLogger::class,,
        'token'   => env('LOG_TELEGRAM_BOT_ID'),
        'channel' => env('LOG_TELEGRAM_CHAT_ID')
    ],
]
```

Add the following information to your .env file. Your LOG\_TELEGRAM\_BOT\_ID is for the your bot key and LOG\_TELEGRAM\_CHAT\_ID is the chat ID for a telegram user or channel.

```
LOG_TELEGRAM_BOT_ID=123456789:ABCDEFGHIJKLMNOPQUSTUFWXYZabcdefghi
LOG_TELEGRAM_CHAT_ID=12345678
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Every ~147 days

Total

5

Last Release

1884d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27299810?v=4)[Maxim](/maintainers/kagatan)[@kagatan](https://github.com/kagatan)

---

Top Contributors

[![kagatan](https://avatars.githubusercontent.com/u/27299810?v=4)](https://github.com/kagatan "kagatan (6 commits)")

---

Tags

loglaravelloggingtelegrammonologchannelsbotsmonolog-telegram

### Embed Badge

![Health badge](/badges/kagatan-monolog-telegram/health.svg)

```
[![Health](https://phpackages.com/badges/kagatan-monolog-telegram/health.svg)](https://phpackages.com/packages/kagatan-monolog-telegram)
```

###  Alternatives

[thecoder/laravel-monolog-telegram

Telegram Handler for Monolog

2939.5k](/packages/thecoder-laravel-monolog-telegram)[rahimi/monolog-telegram

A handler for Monolog that sends messages to Telegram Channels

6980.2k1](/packages/rahimi-monolog-telegram)[mero/telegram-handler

Monolog handler to send log by Telegram

36113.3k](/packages/mero-telegram-handler)[codeinternetapplications/monolog-stackdriver

Stackdriver handler for Monolog.

14181.7k](/packages/codeinternetapplications-monolog-stackdriver)[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)
