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

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

gh-rboliveira/monolog-telegram
==============================

A handler for Monolog that sends messages to Telegram Channels

2.0.4(8y ago)0502MITPHP

Since Oct 6Pushed 8y agoCompare

[ Source](https://github.com/gh-rboliveira/monolog-telegram)[ Packagist](https://packagist.org/packages/gh-rboliveira/monolog-telegram)[ Docs](https://github.com/gh-rboliveira/monolog-telegram)[ RSS](/packages/gh-rboliveira-monolog-telegram/feed)WikiDiscussions master Synced yesterday

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

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

[](#installation)

---

Install using composer:

```
composer require gh-rboliveira/monolog-telegram
```

Usage
=====

[](#usage)

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

- **$level** - The minimum logging level at which this handler will be triggered
- **$bubble** - Whether the messages that are handled can bubble up the stack or not

Examples
========

[](#examples)

Now Simply use it like this :

```
require 'vendor/autoload.php';
use Monolog\Logger;
use gh_rboliveira\TelegramHandler\TelegramHandler;

$log = new Logger('TelegramHandler');
//Create handler
$telegramHandler = new TelegramHandler();

//Add $token - your bot token provided by BotFather
$token = 'XXXXXXXXX:qeQWLElwe_m232WE1K3WEe323eeTw';
$telegramHandler->setBotToken($token);

//Set Receipts - an array with telegram ids
$recipients = ['123456789','987654321'];
$telegramHandler->setRecipients($recipients);

//Set Handler
$log->pushHandler($telegramHandler);

$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 parameter 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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~70 days

Recently: every ~0 days

Total

8

Last Release

3015d ago

Major Versions

v1.0.4 → 2.0.02018-02-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/01a633d537558809f0c67efc73946add0f3ad58982a5e94d2701c74428e6b7a6?d=identicon)[rboliveira](/maintainers/rboliveira)

---

Top Contributors

[![gh-rboliveira](https://avatars.githubusercontent.com/u/24408874?v=4)](https://github.com/gh-rboliveira "gh-rboliveira (2 commits)")[![worldofwarcraftfa](https://avatars.githubusercontent.com/u/46919166?v=4)](https://github.com/worldofwarcraftfa "worldofwarcraftfa (2 commits)")

---

Tags

logloggingtelegrammonologchannelsbotsmonolog-telegram

### Embed Badge

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

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

###  Alternatives

[rahimi/monolog-telegram

A handler for Monolog that sends messages to Telegram Channels

6980.2k1](/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.9k7](/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)
