PHPackages                             emotality/laravel-telegram-logger - 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. emotality/laravel-telegram-logger

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

emotality/laravel-telegram-logger
=================================

Laravel package to report exceptions to a Telegram chat, group or channel.

1.0.6(6mo ago)28.1k↓27.1%1MITPHPPHP ^8.1

Since Oct 2Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/emotality/laravel-telegram-logger)[ Packagist](https://packagist.org/packages/emotality/laravel-telegram-logger)[ Docs](https://github.com/emotality/laravel-telegram-logger)[ Fund](https://www.buymeacoffee.com/emotality)[ GitHub Sponsors](https://github.com/emotality)[ RSS](/packages/emotality-laravel-telegram-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (9)Used By (0)

Telegram Logger for Laravel
===========================

[](#telegram-logger-for-laravel)

 [![License](https://camo.githubusercontent.com/efe58e7bb684fa85cbc58bacb346dfa4c5d46a773bb264735eb74be1923437e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656d6f74616c6974792f6c61726176656c2d74656c656772616d2d6c6f67676572)](https://packagist.org/packages/emotality/laravel-telegram-logger) [![Latest Version](https://camo.githubusercontent.com/4c919b1aa1408960d9c3532b79f35bc68e899b394f0745fea230bee219d5afe0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d6f74616c6974792f6c61726176656c2d74656c656772616d2d6c6f67676572)](https://packagist.org/packages/emotality/laravel-telegram-logger) [![Total Downloads](https://camo.githubusercontent.com/4f2d60419cf8063d8e8964e84cc4e5607ebd5418d8f23ef57023139c31c12f64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656d6f74616c6974792f6c61726176656c2d74656c656772616d2d6c6f67676572)](https://packagist.org/packages/emotality/laravel-telegram-logger)

Laravel package to report exceptions to a Telegram chat, group or channel.

 [ ![](https://raw.githubusercontent.com/emotality/files/master/GitHub/Telegram.png) ](https://www.telegram.org)

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10

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

[](#installation)

1. `composer require emotality/laravel-telegram-logger`
2. `php artisan vendor:publish --provider="Emotality\Telegram\TelegramLoggerServiceProvider"`
3. Add the following lines to your `.env`:

```
TELEGRAM_APP_NAME="A non-APP_NAME name" // optional
TELEGRAM_API_KEY=""
TELEGRAM_CHAT_ID=""
```

4. Add the `telegram` block to the `channels` array, inside your `config/logging.php` file:

```
'channels' => [
    ...
    'telegram' => [
        'driver' => 'telegram',
        'level' => env('LOG_LEVEL', 'error'),
        'cache_ttl' => env('TELEGRAM_CACHE_TTL', 300),
    ],
],
```

###### *Note: Read more about the `cache_ttl` key below.*

[](#note-read-more-about-the-cache_ttl-key-below)

5. Update your log stack and add `telegram` to the `channels` array in `config/logging.php`:

```
'stack' => [
    'driver' => 'stack',
    'channels' => ['daily', 'telegram'],
    ...,
],
```

or change your `LOG_CHANNEL` in your `.env`:

```
LOG_CHANNEL=telegram
```

### Caching TTL explained:

[](#caching-ttl-explained)

A MD5 checksum is being created for every exception, then that checksum is being cached for the `cache_ttl` seconds you provide. If checksum exists in the cache, the log will not be sent.

In other words, when the exact same exception reoccurs, only the first exception will be logged, if after 300 seconds it still occurs, it will be logged again.
Only the first occurrence of the same exception will be logged every 300 seconds to avoid flooding the Telegram API and your chat.

The `cache_ttl` key accepts `false` to disable caching, meaning, each and every exception will be logged to Telegram, even if it's 1000 of the same exception.

License
-------

[](#license)

laravel-telegram-logger is released under the MIT license. See [LICENSE](https://github.com/emotality/laravel-telegram-logger/blob/master/LICENSE) for details.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance66

Regular maintenance activity

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~107 days

Recently: every ~99 days

Total

8

Last Release

206d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0edff3a3b92fcabd1418b4af5a91783ba51d122e0e1d0b06603102b856ae099b?d=identicon)[emotality](/maintainers/emotality)

---

Top Contributors

[![emotality](https://avatars.githubusercontent.com/u/2683462?v=4)](https://github.com/emotality "emotality (7 commits)")[![mattglover11](https://avatars.githubusercontent.com/u/8943960?v=4)](https://github.com/mattglover11 "mattglover11 (1 commits)")

---

Tags

laravellogloggerloggingtelegramtelegram-apitelegram-botloglaravelloggingloggertelegramtelegram api

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/emotality-laravel-telegram-logger/health.svg)

```
[![Health](https://phpackages.com/badges/emotality-laravel-telegram-logger/health.svg)](https://phpackages.com/packages/emotality-laravel-telegram-logger)
```

###  Alternatives

[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[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)[thecoder/laravel-monolog-telegram

Telegram Handler for Monolog

2939.5k](/packages/thecoder-laravel-monolog-telegram)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[hryha/laravel-request-logger

A Laravel package to log requests and responses

102.2k](/packages/hryha-laravel-request-logger)

PHPackages © 2026

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