PHPackages                             tglogger/tg - 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. tglogger/tg

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

tglogger/tg
===========

Log channel

0222PHP

Since Jan 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/anbozsultonov/tglogger)[ Packagist](https://packagist.org/packages/tglogger/tg)[ RSS](/packages/tglogger-tg/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

modelaudit/logging
------------------

[](#modelauditlogging)

**installing**

```
composer require tglogger/tg

```

Use
===

[](#use)

```
add channel to
config/logging.php
[
    'channels' => [
        //...
        'telegram' => [
            'driver' => 'custom',
            'via' => \Tglogger\Logchannel\Logging\TelegramLoggerFactory::class,
            'logger_name' => 'telegram',
            'chat_id' => env('YOUR_CHAT_ID'),
            'token' => env('YOUR_TELEGRAM_LOGGER_BOT'),
            'level' => env('YOUR_LOG_LEVEL', 'debug'),
        ],
        //or
        'your-channel-name' => [
            'driver' => 'custom',
            'via' => \Tglogger\Logchannel\Logging\TelegramLoggerFactory::class,
            'logger_name' => 'your_logger_name',
            'chat_id' => "your chat id",
            'token' => "token",
            'level' => "log level",
        ],
        //...
    ]
]

```

```

\Log::channel('telegram')
    ->debug('log text');

```

//result [![img_2.png](img_2.png)](img_2.png)

or

```
\Log::channel('your-channel-name')
   ->debug('log text');

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![anbozsultonov](https://avatars.githubusercontent.com/u/56534340?v=4)](https://github.com/anbozsultonov "anbozsultonov (15 commits)")

### Embed Badge

![Health badge](/badges/tglogger-tg/health.svg)

```
[![Health](https://phpackages.com/badges/tglogger-tg/health.svg)](https://phpackages.com/packages/tglogger-tg)
```

###  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.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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