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

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

graceman9/monolog-telegram
==========================

A handler for Monolog that sends messages to Telegram Channels

1.0.6(1y ago)061MITPHP

Since Oct 14Pushed 1y ago1 watchersCompare

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

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

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

[](#monolog-telegram)

Telegram Handler for php monolog which allows you to log messages into telegram channels using bots .

[![Latest Stable Version](https://camo.githubusercontent.com/e418c34548ae7ef82b97f301c25427ef19dda47d595ba75aa8ef928885c875f9/68747470733a2f2f706f7365722e707567782e6f72672f726168696d692f6d6f6e6f6c6f672d74656c656772616d2f762f737461626c65)](https://packagist.org/packages/rahimi/monolog-telegram)[![Total Downloads](https://camo.githubusercontent.com/2abf35f010be21630d35b96145b701dd39dd17c3817535e9a1f3593a1b42d8e2/68747470733a2f2f706f7365722e707567782e6f72672f726168696d692f6d6f6e6f6c6f672d74656c656772616d2f646f776e6c6f616473)](https://packagist.org/packages/rahimi/monolog-telegram)[![License](https://camo.githubusercontent.com/784601254ee0e0ea73f52d3c108f88fe8cfc0070d743dd1dbec57f7cd01d1aaf/68747470733a2f2f706f7365722e707567782e6f72672f726168696d692f6d6f6e6f6c6f672d74656c656772616d2f6c6963656e7365)](https://packagist.org/packages/rahimi/monolog-telegram)

Screenshot
==========

[](#screenshot)

---

[![telegram handler demo screenshot](https://camo.githubusercontent.com/f89946aa2af312bb97afd5e5044132acc26b517e9352c4bee37117dd2af3b5f3/68747470733a2f2f692e696d67736166652e6f72672f65342f653436663338343734622e706e67)](https://camo.githubusercontent.com/f89946aa2af312bb97afd5e5044132acc26b517e9352c4bee37117dd2af3b5f3/68747470733a2f2f692e696d67736166652e6f72672f65342f653436663338343734622e706e67)

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

[](#installation)

---

Install using composer:

```
composer require rahimi/monolog-telegram
```

Usage
=====

[](#usage)

it is just like other monolog handlers, you need to pass below paramaters to telegramhandler object:

- **$token** your bot token provided by BotFather
- **$channel** your telegram channel userName
- **$date\_default\_timezone\_set** choose date\_default\_timezone\_set function timezone (optional)
- **$dateFormat** pass date format (optional)

Examples
========

[](#examples)

Now Simply use it like this :

```
require 'vendor/autoload.php';
use Monolog\Logger;
use rahimi\TelegramHandler\TelegramHandler;
$log = new Logger('TelegramHandler');
$log->pushHandler(new TelegramHandler($token,$channel,'UTC','F j, Y, g:i a'));

$log->info('hello world !');
/**
* There is 8 level of logging
*/
$log->notice('hello world !');
$log->info('hello world !');
$log->debug('hello world !');
$log->warning('hello world !');
$log->critical('hello world !');
$log->alert('hello world !');
$log->emergency('hello world !');
$log->error('hello world !');

/**
* Optionally you can pass second paramater such as a object
**/
$log->info('user just logged in !',['user'=>$user]);
```

License
=======

[](#license)

This tool in Licensed under MIT, so feel free to fork it and make it better that it is !

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

572d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a5accaa7e25e44ef3aa1faf17a83e80500f0bcb42b9f087636cd62cb36e2aae?d=identicon)[graceman9](/maintainers/graceman9)

---

Top Contributors

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

---

Tags

logloggingtelegrammonologchannelsbotsmonolog-telegram

### Embed Badge

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

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

###  Alternatives

[rahimi/monolog-telegram

A handler for Monolog that sends messages to Telegram Channels

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

Telegram Handler for Monolog

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

Monolog-based logging package for WordPress.

183617.9k6](/packages/inpsyde-wonolog)[mero/telegram-handler

Monolog handler to send log by Telegram

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

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

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

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)

PHPackages © 2026

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