PHPackages                             redrum0x/laravel-telegram-logging - 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. redrum0x/laravel-telegram-logging

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

redrum0x/laravel-telegram-logging
=================================

Send Laravel logs to a Telegram chat via Telegram Bot.

v1.0.5(1mo ago)0104MITPHPPHP &gt;=8.1

Since Mar 11Pushed 1mo agoCompare

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

READMEChangelog (10)Dependencies (4)Versions (14)Used By (0)

Laravel Telegram Logging
========================

[](#laravel-telegram-logging)

Send Laravel logs to a Telegram chat via Telegram Bot.

[![Total Downloads](https://camo.githubusercontent.com/14b02921b5c80d9d0cac61fdf7779b8aa725ebc707ff05dd04a2b17222817851/68747470733a2f2f706f7365722e707567782e6f72672f72656472756d30782f6c61726176656c2d74656c656772616d2d6c6f6767696e672f646f776e6c6f616473)](//packagist.org/packages/redrum0x/laravel-telegram-logging)[![license](https://camo.githubusercontent.com/d8762f6e00d1dbb12a7d1eb1b44e77a27f089022a0f9e782fe68b0a5d7b2d30d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f72656472756d30782f6c61726176656c2d74656c656772616d2d6c6f6767696e672e737667)](https://github.com/redrum0x/laravel-telegram-logging/blob/master/LICENSE)

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

[](#installation)

To install the package you can use [Composer](https://getcomposer.org/).

```
composer require redrum0x/laravel-telegram-logging
```

Publish the package configuration file using the following artisan command:

```
php artisan vendor:publish --provider "redrum0x\TelegramLogger\TelegramLoggerServiceProvider"
```

To send messages to your Telegram Chat, you first need a Telegram Bot. If you don't have one, see in this [Telegram Instructions](TELEGRAM_BOT_INSTRUCTIONS.md) how to create one.

Set your Bot Token and chat\_id (user, channel or group that will receive log messages) and set as environment variable.

Add in your **.env**, the follows variables:

```
TELEGRAM_LOGGING_BOT_TOKEN=bot_token
TELEGRAM_LOGGING_CHAT_ID=chat_id
```

Usage
-----

[](#usage)

Add the new Log Channel in **config/logging.php**:

```
'telegram' => [
    'driver' => 'custom',
    'via'    => redrum0x\TelegramLogger\TelegramLogger::class,
    'level'  => 'debug',
]
```

If you use the **stack channel** as default logger, you can just the telegram channel to your stack:

```
'stack' => [
    'driver' => 'stack',
    'channels' => ['single', 'telegram'],
]
```

Or you can simply change the default logging channel in the .env file.

```
LOG_CHANNEL=telegram
```

Great! Your Laravel project can now send logs to your Telegram chat.

You can use **Laravel Log Facade** to send logs to your chat:

```
// Use the Laravel Log Facade
use Illuminate\Support\Facades\Log;
...

// All Laravel log leves are avaiable
Log::channel('telegram')->emergency($message);
Log::channel('telegram')->alert($message);
Log::channel('telegram')->critical($message);
Log::channel('telegram')->error($message);
Log::channel('telegram')->warning($message);
Log::channel('telegram')->notice($message);
Log::channel('telegram')->info($message);
Log::channel('telegram')->debug($message);
```

Telegram Instructions
---------------------

[](#telegram-instructions)

To use this package, you need to create a Telegram bot to send messages to your chat.

If you need help, check out these [Telegram Instructions](TELEGRAM_BOT_INSTRUCTIONS.md) that I created for you.

Contributing
------------

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](https://github.com/redrum0x/laravel-telegram-logging/blob/master/LICENSE)

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 79.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 ~92 days

Recently: every ~114 days

Total

13

Last Release

52d ago

Major Versions

0.1.5 → 1.02024-12-16

PHP version history (3 changes)0.0.1PHP &gt;=7.2

0.1.0PHP &gt;=8.0

1.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/896abef018728d39903d96bb64fbe393ab2702363c959d902a09db133e091d07?d=identicon)[redrum0x](/maintainers/redrum0x)

---

Top Contributors

[![rafaellaurindo](https://avatars.githubusercontent.com/u/25041169?v=4)](https://github.com/rafaellaurindo "rafaellaurindo (35 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (7 commits)")[![ProMasoud](https://avatars.githubusercontent.com/u/16334025?v=4)](https://github.com/ProMasoud "ProMasoud (2 commits)")

### Embed Badge

![Health badge](/badges/redrum0x-laravel-telegram-logging/health.svg)

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

###  Alternatives

[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)[rafaellaurindo/laravel-telegram-logging

Send Laravel logs to a Telegram chat via Telegram Bot.

3326.8k](/packages/rafaellaurindo-laravel-telegram-logging)

PHPackages © 2026

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