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

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

uchup07/laravel-logging-telegram
================================

Custom Telegram Driver for Laravel Logging

1.0.0(3y ago)02MITPHPPHP ^7.4|^8.0

Since Dec 13Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (2)Used By (0)

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

[](#laravel-logging-telegram)

[![Latest Version on Packagist](https://camo.githubusercontent.com/00e88e72602813228136887ec9db5b84ad66bbd27b097b92129b329fdb906c6a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756368757030372f6c61726176656c2d6c6f6767696e672d74656c656772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uchup07/laravel-logging-telegram)[![Total Downloads](https://camo.githubusercontent.com/c4b2fb6277e25652a24da211ba420e7770df3b9f7147be8ea87aec3770a8fdff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f756368757030372f6c61726176656c2d6c6f6767696e672d74656c656772616d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uchup07/laravel-logging-telegram)[![GitHub Actions](https://github.com/uchup07/laravel-logging-telegram/actions/workflows/main.yml/badge.svg)](https://github.com/uchup07/laravel-logging-telegram/actions/workflows/main.yml/badge.svg)

Custom Logging Laravel for sending log to telegram chat via Bot

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

[](#installation)

You can install the package via composer:

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

Added environment parameters.

```
TELEGRAM_BOT_TOKEN=token_telegram_bot
TELEGRAM_CHAT_ID=
TELEGRAM_LOG_LEVEL=error
```

#### Create Telegram Bot and get Token

[](#create-telegram-bot-and-get-token)

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

For detail guide about telegram bot [@BotFather](https://core.telegram.org/bots/features#botfather) on telegram

To check Chat ID please check TELEGRAM API [getUpdates](https://core.telegram.org/bots/api#getupdates)

#### Added Config

[](#added-config)

Add to **config/logging.php** file new channel:

```
'telegram' => [
    'driver' => 'custom',
    'via'    => Uchup07\LaravelLoggingTelegram::class,
    'level'  => env('TELEGRAM_LOG_LEVEL','error'),
]
```

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

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

Usage
-----

[](#usage)

Publish config file and views

```
php artisan vendor:publish --provider "Uchup07\LaravelLoggingTelegram\LaravelLoggingTelegramServiceProvider"

```

#### Telegram Logging Formats

[](#telegram-logging-formats)

You can choose among two different formats that you can specify in the `.env` file like this :

```
# Use a minimal log template
TELEGRAM_LOG_TEMPLATE = laravel-logging-telegram::minimal

# Or use the backward compatible one (default setting used even without inserting this row)
TELEGRAM_LOG_TEMPLATE = laravel-logging-telegram::default

```

It is possible to create other blade templates and reference them in the `TELEGRAM_LOG_TEMPLATE` entry

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Yusuf Mulhajat](https://github.com/uchup07)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1246d ago

### Community

Maintainers

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

---

Top Contributors

[![uchup07](https://avatars.githubusercontent.com/u/914554?v=4)](https://github.com/uchup07 "uchup07 (5 commits)")

---

Tags

uchup07laravel-logging-telegram

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

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