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.8(2mo ago)29.9k↓47.8%1MITPHPPHP ^8.1CI passing

Since Oct 2Pushed 2mo 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 3d ago

READMEChangelogDependencies (8)Versions (11)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)

Minimum Requirements
--------------------

[](#minimum-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

49

—

FairBetter than 94% of packages

Maintenance87

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~105 days

Total

10

Last Release

64d 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 (12 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10823.1k](/packages/naoray-laravel-github-monolog)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2038.9k](/packages/onlime-laravel-http-client-global-logger)[api-platform/laravel

API Platform support for Laravel

58171.8k14](/packages/api-platform-laravel)

PHPackages © 2026

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