PHPackages                             jackmartin/telegram-logger-errors - 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. jackmartin/telegram-logger-errors

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

jackmartin/telegram-logger-errors
=================================

Telegram logger errors package laravel

1.8(3y ago)1331.3k3MITPHPPHP ^7.0 || ^7.2 || ^7.3

Since Sep 12Pushed 3y ago2 watchersCompare

[ Source](https://github.com/martinjack/telegram-logger-errors)[ Packagist](https://packagist.org/packages/jackmartin/telegram-logger-errors)[ Docs](https://github.com/martinjack/telegram-logger-errors)[ Fund](https://buymeacoffee.com/martinjack)[ GitHub Sponsors](https://github.com/martinjack)[ RSS](/packages/jackmartin-telegram-logger-errors/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (2)Versions (12)Used By (0)

[![header](doc/header.png)](doc/header.png)

Telegram logger errors
======================

[](#telegram-logger-errors)

Пакет для laravel TLE - Telegram логгер ошибок

[![Latest Stable Version](https://camo.githubusercontent.com/6c6c463eea0177f2922954e0d72d11635f80a0e2fb8244ae696136da9c8bdcf3/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f74656c656772616d2d6c6f676765722d6572726f72732f762f737461626c65)](https://packagist.org/packages/jackmartin/telegram-logger-errors) [![Total Downloads](https://camo.githubusercontent.com/e1c41f7a522d91845c344ea9e3d85a7bd68877589ddb06ff629a06a8262965aa/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f74656c656772616d2d6c6f676765722d6572726f72732f646f776e6c6f616473)](https://packagist.org/packages/jackmartin/telegram-logger-errors) [![License](https://camo.githubusercontent.com/f778ebd83229e7d696e6aea2d4a93cc084c7d308901a32d5646775a7f4c28fe4/68747470733a2f2f706f7365722e707567782e6f72672f6a61636b6d617274696e2f74656c656772616d2d6c6f676765722d6572726f72732f6c6963656e7365)](https://packagist.org/packages/jackmartin/telegram-logger-errors)

[![bot](doc/bot.png)](doc/bot.png)

> Read this in other language: [English](README.en.md), [Русский](README.md), [Український](README.ua.md)

Требования
==========

[](#требования)

- php 7.0
- composer

Установка
=========

[](#установка)

Установить пакет с помощью composer

```
composer require jackmartin/telegram-logger-errors
```

### Laravel Настройка

[](#laravel-настройка)

После установки пакета с помощью composer, зарегистрируйте сервис пакета в файле config/app.php:

```
Telegram\Bot\Laravel\TelegramServiceProvider::class,
TLE\TLEServiceProvider::class
```

Затем для быстрого вызов класса пакета, добавьте псевдоним в этот же файле:

```
'Telegram' => Telegram\Bot\Laravel\Facades\Telegram::class,
'TLE' => TLE\Facades\TLEFacade::class
```

### Копируем файл настроек telegram.php, tle.php в config папку

[](#копируем-файл-настроек-telegramphp-tlephp-в-config-папку)

##### Telegram SDK

[](#telegram-sdk)

```
php artisan vendor:publish
```

Выбираем Provider: Telegram\\Bot\\Laravel\\TelegramServiceProvider

##### TLE

[](#tle)

```
php artisan vendor:publish
```

Выбираем Tag: tle-config

или

```
php artisan vendor:publish --provider="TLE\TLEServiceProvider" --tag="tle-config"
```

#### Настройка токена и имя бота в config/telegram.php

[](#настройка-токена-и-имя-бота-в-configtelegramphp)

```
'bots'  => [
    'common' => [
        'username' => 'Name bot',
        'token'    => 'Token bot',
        'commands' => [],
    ],

],
'default'  => 'common',
```

#### Режим отладки

[](#режим-отладки)

```
'debug' => false
```

#### Имя бота

[](#имя-бота)

Нужно для Telegram SDK

```
'botname' => ''
```

#### Идентификатор чата

[](#идентификатор-чата)

```
'chat_id' => ''
```

#### Сохраняние лога

[](#сохраняние-лога)

```
'save_log' => true
```

#### Путь сохранения временного файла

[](#путь-сохранения-временного-файла)

```
'path_save' => 'local'
```

#### Отключение записи ошибок Telegram в лог файл

[](#отключение-записи-ошибок-telegram-в-лог-файл)

```
'disable_exception_telegram' => false
```

Использование
-------------

[](#использование)

#### Отправка простого исключения

[](#отправка-простого-исключения)

```
use TLE;

try {

    print_r($a);

} catch (\Exception $e) {

    TLE::exp($e)->send();

}
```

#### Отправка простого исключения + информацию

[](#отправка-простого-исключения--информацию)

```
use TLE;

try {

    print_r($a);

} catch (\Exception $e) {

    TLE::exp($e)->info('Field check')->send();

}
```

#### Отправка Guzzle исключения

[](#отправка-guzzle-исключения)

```
use TLE;

try {

    print_r($a);

} catch (RequestException $e) {

    TLE::guzzle($e)->send();

}
```

### Добавление класса TLE в глобальный обработчик ошибок в app\\Exceptions\\Handler.php

[](#добавление-класса-tle-в-глобальный-обработчик-ошибок-в-appexceptionshandlerphp)

```
public function report(Exception $exception)
{

    \TLE::exp($exception)->send();

    parent::report($exception);

}
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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 ~164 days

Recently: every ~242 days

Total

10

Last Release

1359d ago

PHP version history (3 changes)1.0-stablePHP &gt;=7.0.0

1.4PHP ^7.0 || ^7.2

1.5PHP ^7.0 || ^7.2 || ^7.3

### Community

Maintainers

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

---

Top Contributors

[![martinjack](https://avatars.githubusercontent.com/u/11950689?v=4)](https://github.com/martinjack "martinjack (73 commits)")[![willek](https://avatars.githubusercontent.com/u/25026778?v=4)](https://github.com/willek "willek (1 commits)")

---

Tags

error-messageslaravelloggermessagetelegram-botlaravelerrorsloggertelegram

### Embed Badge

![Health badge](/badges/jackmartin-telegram-logger-errors/health.svg)

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

###  Alternatives

[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90335.7M37](/packages/bugsnag-bugsnag-laravel)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M152](/packages/spatie-laravel-health)[ytake/laravel-aspect

Aspect Oriented Programming library for laravel framework, and lumen

138140.4k1](/packages/ytake-laravel-aspect)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14844.4k1](/packages/guanguans-laravel-exception-notify)[spatie/laravel-flare

Send Laravel errors to Flare

111.2M6](/packages/spatie-laravel-flare)

PHPackages © 2026

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