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

0843↓50%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 1mo ago

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

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 70% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/888ea3bfd61ac334551eb6b1dd2151c64022986f82c690cc87aa2db82d84a888?d=identicon)[flamix](/maintainers/flamix)

---

Top Contributors

[![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.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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