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

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

rafaellaurindo/laravel-telegram-logging
=======================================

Send Laravel logs to a Telegram chat via Telegram Bot.

v1.0.2(3y ago)3326.8k↓50%16[5 PRs](https://github.com/rafaellaurindo/laravel-telegram-logging/pulls)MITPHPPHP &gt;=7.2CI failing

Since Jan 15Pushed 1y ago3 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (10)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/ce45366126f88d01a4c3c82c8819c353ffe397a9a8ba9e21402ab39634e760e7/68747470733a2f2f706f7365722e707567782e6f72672f72616661656c6c617572696e646f2f6c61726176656c2d74656c656772616d2d6c6f6767696e672f646f776e6c6f616473)](//packagist.org/packages/rafaellaurindo/laravel-telegram-logging)[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LUAC5W7GF2BVW&source=url)[![license](https://camo.githubusercontent.com/0423b9f0b7807080a07054b6705b36d4b1973e77ffec761a9253db05f538fe41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f72616661656c6c617572696e646f2f6c61726176656c2d74656c656772616d2d6c6f6767696e672e737667)](https://github.com/rafaellaurindo/laravel-telegram-logging/blob/master/LICENSE)

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

[](#installation)

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

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

Publish the package configuration file using the following artisan command:

```
php artisan vendor:publish --provider "RLaurindo\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_BOT_TOKEN=bot_token
TELEGRAM_CHAT_ID=chat_id
```

Usage
-----

[](#usage)

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

```
'telegram' => [
    'driver' => 'custom',
    'via'    => RLaurindo\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.

Donations are welcome
---------------------

[](#donations-are-welcome)

If this project help you reduce time to develop, you can give me a cup of coffee :)

Donate with Paypal:

[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=LUAC5W7GF2BVW&source=url)

License
-------

[](#license)

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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 ~392 days

Total

3

Last Release

1158d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec8f543ee45490cb981735eb44b00ee6edbdcab9dcbb799706b390dede4e97a?d=identicon)[rafaellaurindo](/maintainers/rafaellaurindo)

---

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)")

---

Tags

laravellaravel-packagemonologmonolog-handlertelegramtelegram-bottelegram-bot-api

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/rafaellaurindo-laravel-telegram-logging/health.svg)](https://phpackages.com/packages/rafaellaurindo-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)

PHPackages © 2026

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