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

ActiveLibrary

thanhtaivtt/laravel-telegram-logger
===================================

Laravel Send error log to Telegram Bot, Channel

v1.07(4y ago)13261MITPHPPHP ^7.2|^8.0|^8.1

Since Apr 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/thanhtaivtt/laravel-telegram-logger)[ Packagist](https://packagist.org/packages/thanhtaivtt/laravel-telegram-logger)[ RSS](/packages/thanhtaivtt-laravel-telegram-logger/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (10)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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

Every ~98 days

Recently: every ~172 days

Total

8

Last Release

1520d ago

PHP version history (2 changes)v1.0.0PHP ^7.2

v1.07PHP ^7.2|^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/9adbb10083b59d529dc809f5cf15d1a4792e12dd1c2218d5ebbb1289974709d2?d=identicon)[thanhtaivtt](/maintainers/thanhtaivtt)

---

Top Contributors

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

---

Tags

laravellaravel-loggerlaravel-telegram-loggerphpphp7telegram-bot

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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