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

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

flamix/telegram-log
===================

Send laravel logs into Telegram Chat via bot

01.0k↓32.1%PHP

Since Nov 10Pushed 2y agoCompare

[ Source](https://github.com/rshkabko/telegram-log)[ Packagist](https://packagist.org/packages/flamix/telegram-log)[ RSS](/packages/flamix-telegram-log/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Install
-------

[](#install)

```
composer require flamix/telegram-log
```

Configurations
--------------

[](#configurations)

Please define Telegram Bot Credentials and chat id as environment parameters by modifying `.env` on your project path

```
TELEGRAM_BOT_TOKEN=null
TELEGRAM_CHAT_ID=null
TELEGRAM_LOGGER_TEMPLATE=null
TELEGRAM_OPTIONS=[]
```

By default `LOG_CHANNEL` will be set into `stack` so you need to set default logger on env after setting up configurations above

```
LOG_CHANNEL=telegram
```

Publish config file and views to override

```
php artisan vendor:publish --provider "Flamix\TelegramLog\TelegramServiceProvider"
```

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

public function register()
    {
        $this->reportable(function (Throwable $e) {
            Log::channel('telegram')->emergency($e->getMessage(), ['file' => $e->getFile(), 'line' => $e->getLine()]);
        });
    }
```

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

[](#create-bot)

For using this plugin, you need to create telegram bot

1. Go to [@BotFather](https://t.me/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

Change log template at runtime
------------------------------

[](#change-log-template-at-runtime)

1. Change config for template.

```
config(['telegram-logger.template'=>'laravel-telegram-logging::custom'])
```

2. Use `Log` as usual

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16613944?v=4)[flamix](/maintainers/flamix)[@flamix](https://github.com/flamix)

---

Top Contributors

[![yan-ad](https://avatars.githubusercontent.com/u/39618526?v=4)](https://github.com/yan-ad "yan-ad (14 commits)")[![yanuaraditia](https://avatars.githubusercontent.com/u/39618526?v=4)](https://github.com/yanuaraditia "yanuaraditia (14 commits)")[![rshkabko](https://avatars.githubusercontent.com/u/33148760?v=4)](https://github.com/rshkabko "rshkabko (6 commits)")

### Embed Badge

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

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M342](/packages/open-telemetry-sdk)

PHPackages © 2026

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