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

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

c0dem1ner/laravel-telegram-logger
=================================

Telegram Log integration for Laravel

1.0.6(2mo ago)1141↓50%MITPHPPHP &gt;=7.4CI passing

Since Mar 18Pushed 2mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

Laravel Telegram Logger
=======================

[](#laravel-telegram-logger)

A simple Laravel package to send log messages directly to a Telegram chat or group using the Telegram Bot API.

Features
--------

[](#features)

- Log messages from Laravel to Telegram in real-time.
- Easy setup with simple configuration.
- Customizable Telegram message format.

---

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

[](#installation)

```
composer require c0dem1ner/laravel-telegram-logger
```

Configuration
-------------

[](#configuration)

1. Publish the config file:

```
php artisan vendor:publish --tag=telegram-logger-config
```

2. Update the `.env` file:

```
TELEGRAM_BOT_TOKEN=your-telegram-bot-token
TELEGRAM_CHAT_ID=your-telegram-chat-id

```

3. Configure logging in `config/logging.php`:

```
'channels' => [
    // other channels...

    'telegram' => [
            'driver' => 'custom',
            'level' => env('LOG_LEVEL', 'debug'),
            'via' => \C0deM1ner\LaravelTelegramLogger\Logger\TelegramLogger::class,
            'chat_id' => env('TELEGRAM_CHAT_ID', '1234567'),
            'token' => env('TELEGRAM_BOT_TOKEN', '')
            'type' => 'alert', // can be 'alert', 'error', 'info'
        ],

        // You can also add multiple Telegram channels
    ],
],
```

---

Usage
-----

[](#usage)

You can log directly to Telegram using:

```
telegramLog()->info('Your message here');
telegramLog()->alert('Your message here');
telegramLog()->error('Your message here');
```

Or use Laravel’s global logging:

```
    logger()
        ->channel('telegram')
        ->debug('Your message here');
```

> Any log message matching the configured level will be sent to Telegram.

---

Customizing Messages
--------------------

[](#customizing-messages)

If needed, you can publish and edit the view for Telegram messages:

```
php artisan vendor:publish --tag=telegram-logger-views
```

Customize the message structure in `resources/views/vendor/telegram-logger/messages`.

---

Testing
-------

[](#testing)

You can test your configuration by running:

```
php artisan telegram-log:send-test-message
```

---

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](license.md).

---

Credits
-------

[](#credits)

- Developed by C0deM1ner
- Telegram Bot API

---

Contributions
-------------

[](#contributions)

Contributions are welcome! Please open issues or submit PRs.

---

Security
--------

[](#security)

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Every ~57 days

Recently: every ~84 days

Total

7

Last Release

77d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1cd0ee3634086a41067b0dbd2559738faca16126007bd4aa1f83b7c8dcac05da?d=identicon)[C0deM1ner](/maintainers/C0deM1ner)

---

Top Contributors

[![C0deM1ner](https://avatars.githubusercontent.com/u/75620322?v=4)](https://github.com/C0deM1ner "C0deM1ner (17 commits)")

---

Tags

laravellogginglogging-packagephptelegramtelegram-bot

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[beyondcode/laravel-server-timing

Add Server-Timing header information from within your Laravel apps.

5712.0M1](/packages/beyondcode-laravel-server-timing)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[label84/laravel-auth-log

Log user authentication actions in Laravel.

3654.0k](/packages/label84-laravel-auth-log)

PHPackages © 2026

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