PHPackages                             aqhmal/laravel-telegram-log - 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. aqhmal/laravel-telegram-log

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

aqhmal/laravel-telegram-log
===========================

A package to send Laravel/Lumen logs to Telegram via Telegram Bot.

1.1.1(3y ago)02.8kMITPHPPHP ^7.1|^7.2|^7.3|^7.4|^8.0

Since Nov 29Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (1)Versions (9)Used By (0)

Laravel Telegram Log
====================

[](#laravel-telegram-log)

Laravel/Lumen package to send logs to Telegram via Telegram Bot. This package adds the Lumen support for [this](https://github.com/rafaellaurindo/laravel-telegram-logging) Laravel package.

This version supports

- Laravel 5.6, 5.7, 5.8, 6.x, 7.x, 8.x, and 9.x
- Lumen 8.x and 9.x (older version not tested)

[![PHP Version Require](https://camo.githubusercontent.com/4ff01a0dea07a74557b38fa3a0de3d842bc1aa47c54abea7b9a3045f92c9cb96/68747470733a2f2f706f7365722e707567782e6f72672f6171686d616c2f6c61726176656c2d74656c656772616d2d6c6f672f726571756972652f706870)](https://packagist.org/packages/aqhmal/laravel-telegram-log)[![Total Downloads](https://camo.githubusercontent.com/25cc6892964edba125d786f6998babe6d707310dc789ed96bcf2a6805445afc6/68747470733a2f2f706f7365722e707567782e6f72672f6171686d616c2f6c61726176656c2d74656c656772616d2d6c6f672f646f776e6c6f616473)](https://packagist.org/packages/aqhmal/laravel-telegram-log)[![Version](https://camo.githubusercontent.com/07f77c3e882aed1e16409778bd2f1e57cebc062f6676f1225f2f6d089f32d2c5/687474703a2f2f706f7365722e707567782e6f72672f6171686d616c2f6c61726176656c2d74656c656772616d2d6c6f672f76657273696f6e)](https://packagist.org/packages/aqhmal/laravel-telegram-log)[![license](https://camo.githubusercontent.com/953e063267eb790a550f1567cb1f8f0b33b53478e9e11324b1825d438daacdee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6171686d616c2f6c61726176656c2d74656c656772616d2d6c6f672e737667)](https://github.com/aqhmal/laravel-telegram-log/blob/main/LICENSE.md)

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

[](#installation)

1. Install via composer

```
composer require aqhmal/laravel-telegram-log
```

2. Add or create a new channel in **config/logging.php**.

```
'telegram' => [
    'driver' => 'custom',
    'via' => Aqhmal\TelegramLog\TelegramLog::class,
    'level' => env('LOG_LEVEL', 'debug'),
]
```

If you use stack as the default log channel, you can append the telegram channel in it.

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

3. Add in your **.env** the following variables with its value.

```
TELEGRAM_BOT_TOKEN=bot_token
TELEGRAM_CHAT_ID=chat_id
```

4. Change the `LOG_CHANNEL` value in your **.env** to `telegram`

```
LOG_CHANNEL=telegram
```

Lumen Support
-------------

[](#lumen-support)

Register a new Service Provider in **bootstrap/app.php**.

```
$app->register(Aqhmal\TelegramLog\TelegramLogServiceProvider::class);
```

Usage
-----

[](#usage)

You may write information to the logs using the Log facade. Refer [here](https://laravel.com/docs/logging#writing-log-messages) for more detail.

```
use Illuminate\Support\Facades\Log;

Log::emergency($message);
Log::alert($message);
Log::critical($message);
Log::error($message);
Log::warning($message);
Log::notice($message);
Log::info($message);
Log::debug($message);
```

License
-------

[](#license)

This Telegram log package is licensed under the [MIT license](https://github.com/aqhmal/laravel-telegram-log/blob/main/LICENSE.md).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Recently: every ~50 days

Total

8

Last Release

1419d ago

PHP version history (2 changes)1.0.0PHP ^7.3|^8.0

1.1.0PHP ^7.1|^7.2|^7.3|^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![aqhmal](https://avatars.githubusercontent.com/u/22043590?v=4)](https://github.com/aqhmal "aqhmal (11 commits)")

---

Tags

laravelloggerlogginglumenlumen-packagemonologmonolog-handlerphptelegramtelegram-bottelegram-bot-apiloglaravellumentelegramtelegram botmonolog

### Embed Badge

![Health badge](/badges/aqhmal-laravel-telegram-log/health.svg)

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

###  Alternatives

[codeinternetapplications/monolog-stackdriver

Stackdriver handler for Monolog.

14181.7k](/packages/codeinternetapplications-monolog-stackdriver)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[thecoder/laravel-monolog-telegram

Telegram Handler for Monolog

2939.5k](/packages/thecoder-laravel-monolog-telegram)[rahimi/monolog-telegram

A handler for Monolog that sends messages to Telegram Channels

6980.2k1](/packages/rahimi-monolog-telegram)[mero/telegram-handler

Monolog handler to send log by Telegram

36113.3k](/packages/mero-telegram-handler)[jacklul/monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format

2364.7k1](/packages/jacklul-monolog-telegram)

PHPackages © 2026

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