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

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

revangelista/telegram-logger
============================

Send logs to Telegram chat via Telegram bot

1.4.0(2y ago)128.1k↓50%2MITPHPPHP ^7.1.3 || ^8.0

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/renevangelista/telegram-logger)[ Packagist](https://packagist.org/packages/revangelista/telegram-logger)[ GitHub Sponsors](https://github.com/renevangelista)[ RSS](/packages/revangelista-telegram-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Telegram Logger
===============

[](#telegram-logger)

Send logs to Telegram chat via Telegram bot in your Laravel application

Install
-------

[](#install)

```

composer require revangelista/telegram-logger

```

Set a new channel in the **config/logging.php** file, with the following variables:

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

Where **token** is the token of your Telegram bot and **chat\_id** is where the bot will send the messages

If you want your Telegram bot to send log messages for more than one chat at the same time, you can write the channel settings like this:

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

If your default log channel is a stack, you can add it to the **stack** channel like this:

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

Or you can simply change the default log channel in the .env

```
LOG_CHANNEL=telegram

```

Logging
-------

[](#logging)

For more information on custom log channels, check the [Laravel documentation](https://laravel.com/docs/master/logging) on this.

Create bot
----------

[](#create-bot)

For using this package you need to create Telegram bot

1. Go to @BotFather in the Telegram
2. Send `/newbot`
3. Set up name and bot-name for your bot.
4. Get token and add it to your .env file (it is written above)
5. Go to your bot and send `/start` message

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 93.8% 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 ~289 days

Total

5

Last Release

887d ago

PHP version history (2 changes)1.0.0PHP ^7.1.3

1.2.0PHP ^7.1.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/be2193d73fa5c0f5f3ddb8a33bddb28f2b60d59f20507243a425daf2f67f9e6a?d=identicon)[revangelista](/maintainers/revangelista)

---

Top Contributors

[![renevangelista](https://avatars.githubusercontent.com/u/17853223?v=4)](https://github.com/renevangelista "renevangelista (15 commits)")[![filipefico](https://avatars.githubusercontent.com/u/1486214?v=4)](https://github.com/filipefico "filipefico (1 commits)")

---

Tags

laravelphptelegram

### Embed Badge

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

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

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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