PHPackages                             mrjavadseydi/laravel-telegram-logger1 - 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. mrjavadseydi/laravel-telegram-logger1

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

mrjavadseydi/laravel-telegram-logger1
=====================================

Laravel Send error log to Telegram Bot, Channel

v1.06(5y ago)04MITPHPPHP ^7.2

Since Apr 25Pushed 4y agoCompare

[ Source](https://github.com/mrjavadseydi/laravel-telegram-logger)[ Packagist](https://packagist.org/packages/mrjavadseydi/laravel-telegram-logger1)[ RSS](/packages/mrjavadseydi-laravel-telegram-logger1/feed)WikiDiscussions master Synced 1mo ago

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

laravel-telegram-logger
=======================

[](#laravel-telegram-logger)

Send Laravel log to Telegram Bot or Channel

Install
=======

[](#install)

```
composer require thanhtaivtt/laravel-telegram-logger
```

Config
======

[](#config)

- Add this code to the `config/logging.php` as a new channel:

```
'telegram' => [
            'driver' => 'custom',
            'via' => \Thanhtaivtt\TelegramLogger\TelegramLogger::class,
            'api_key' => env('TELEGRAM_API_KEY'),
            'chat_id' => env('TELEGRAM_CHAT_ID'),
            'send_log' => env('TELEGRAM_SEND_LOG', false),
        ],
```

- And add `telegram` channel to current stack channel:

Eg:

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

- Define Telegram Bot Token and chat id on `.env`

```
TELEGRAM_API_KEY=BOT_TOKEN
TELEGRAM_CHAT_ID=BOT_ID
TELEGRAM_SEND_LOG=true
```

**Description**

KeyTypeDescription`TELEGRAM_API_KEY``String`Token of Telegram Bot or Channel`TELEGRAM_CHAT_ID``String`Bot or Channel ID (Include the @ character)`TELEGRAM_SEND_LOG``Boolean`Specify whether to send the log or notIf you want to send the log in all other than local environments, you can set it as follows:

```
'telegram' => [
            'driver' => 'custom',
            'via' => \Thanhtaivtt\TelegramLogger\TelegramLogger::class,
            'api_key' => env('TELEGRAM_API_KEY'),
            'chat_id' => env('TELEGRAM_CHAT_ID'),
            'send_log' => env('APP_ENV') !== 'local',
        ],
```

How to create Telegram Bot?
===========================

[](#how-to-create-telegram-bot)

[![Laravel Telegram Logger](https://camo.githubusercontent.com/aed04db48cfe1c6e563b8f1b45600dd9be0d820cb6d120c4b20e8f8f4efcf02a/68747470733a2f2f7374617469632e746f696469636f64652e636f6d2f6c61726176656c2d74656c656772616d2d6c6f676765722e676966 "Laravel Telegram Logger")](https://camo.githubusercontent.com/aed04db48cfe1c6e563b8f1b45600dd9be0d820cb6d120c4b20e8f8f4efcf02a/68747470733a2f2f7374617469632e746f696469636f64652e636f6d2f6c61726176656c2d74656c656772616d2d6c6f676765722e676966)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.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 ~52 days

Recently: every ~78 days

Total

7

Last Release

1895d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59200320?v=4)[mohammadjavad seydi](/maintainers/MrjavadSeydi)[@mrjavadseydi](https://github.com/mrjavadseydi)

---

Top Contributors

[![thanhtaivtt](https://avatars.githubusercontent.com/u/18238662?v=4)](https://github.com/thanhtaivtt "thanhtaivtt (13 commits)")[![mrjavadseydi](https://avatars.githubusercontent.com/u/59200320?v=4)](https://github.com/mrjavadseydi "mrjavadseydi (3 commits)")

### Embed Badge

![Health badge](/badges/mrjavadseydi-laravel-telegram-logger1/health.svg)

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

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-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)[regulus/activity-log

A clean and simple Laravel 5 activity logger for monitoring user activity on a website or web application.

164220.1k2](/packages/regulus-activity-log)

PHPackages © 2026

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