PHPackages                             nicolae-soitu/telegram-dump - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. nicolae-soitu/telegram-dump

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

nicolae-soitu/telegram-dump
===========================

The Laravel package for sending dumps directly to Telegram is an extremely useful tool for developers who want to monitor and analyze the behavior of Laravel applications in real time by receiving dumps directly in a Telegram chat.

v1.0.1(2y ago)010MITPHPPHP &gt;=5.2

Since Mar 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nicolae-soitu/telegram-dump)[ Packagist](https://packagist.org/packages/nicolae-soitu/telegram-dump)[ RSS](/packages/nicolae-soitu-telegram-dump/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

TelegramDump
============

[](#telegramdump)

The Laravel package for sending dumps directly to Telegram is an extremely useful tool for developers who want to monitor and analyze the behavior of Laravel applications in real time by receiving dumps directly in a Telegram chat. This package facilitates a direct link between the Laravel application and Telegram, allowing developers to quickly and efficiently send dumps of data or the application's state at critical moments or for debugging.

### Key Features:

[](#key-features)

- **Simple Integration:** It integrates easily into existing Laravel projects, requiring only a few lines of code for setup and initialization.
- **Flexible Configuration:** Offers extensive configuration options, including setting the Telegram bot token and chat ID to direct messages to the desired location.
- **Security:** Implements security measures to ensure that dumps are sent securely, protecting sensitive data.
- **Customization:** Allows customization of the messages sent to Telegram, including the ability to add additional relevant information for debugging.
- **Real-time Reporting:** Ideal for real-time application monitoring, instantly sending dumps to Telegram upon certain events or errors.
- **Support for Formatting:** Supports message formatting to improve the readability of dumps in Telegram, facilitating quick data analysis.

### Typical Usage:

[](#typical-usage)

Developers can use this package to send notifications about uncaught exceptions, validation errors, or any other relevant information that helps monitor the application's state and quickly identify issues. It is particularly useful in production environments, where direct access to logs may be more restricted.

### Implementation:

[](#implementation)

Implementing the package requires configuring a Telegram bot and obtaining a token, which are then used to set up the package in the Laravel configuration file. After configuration, developers can call the function to send dumps anywhere in their code, transmitting any information they wish directly to the specified Telegram chat.

Installation
============

[](#installation)

You can install the package via composer:

```
composer require nicolae-soitu/telegram-dump
```

You can publish

```
php artisan vendor:publish --provider="NicolaeSoitu\TelegramDump\Providers\TelegramDumpServiceProvider"
```

Create bot
==========

[](#create-bot)

For using this package you need have or to create Telegram bot

- Open telegram go to @BotFather
- Type /newbot
- Follow the instructions.
- Go to your bot push /start

Add to the `.env` file
----------------------

[](#add-to-the-env-file)

```
TELEGRAM_DUMP_TOKEN=...telegram token...
TELEGRAM_DUMP_CHAT_ID=...telegram chat id...

```

Usage example
-------------

[](#usage-example)

```
use NicolaeSoitu/TelegramDump/TelegramDump;

//...
  $var = ['foo'=>'bar'];
  TelegramDump::send($var);

  // or with parameters

  TelegramDump::
  // optional user id or chat id
  to(120200000030203020)
  // optional type of notification
  // info ℹ️
  // warning ⚠️
  // ok ✅
  // delete ❌
  // or custom (any string/emoji)
  -> type('info')
  // Notification title
  -> title('Title')
  // Notification descriotion
  -> description('Short description')
  // send is required - any variable/object/string...
  -> send($var);

  try {
  // Code that may throw an Exception or Error.
  } catch (Throwable $t) {
    TelegramDump::send($t);
  } catch (Exception $e) {
    TelegramDump::send($e);
  }
// ...
```

#### To receive all errors

[](#to-receive-all-errors)

in App\\Exceptions\\Handler

```
#app/Exceptions/Handler.php
use NicolaeSoitu/TelegramDump/TelegramDump;
// add in reportable
//...
$this->reportable(function (Throwable $e) {
  TelegramDump::send($e); // add it here in reportable
});
//...
```

Commands
--------

[](#commands)

```
php artisan telegram-dump:test

```

```
php artisan telegram-dump:getUpdate

```

In conclusion, this package represents an efficient and flexible solution for monitoring and debugging Laravel applications, providing a direct and fast method to send critical information to Telegram, facilitating a rapid response to emerging issues.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Every ~1 days

Total

2

Last Release

796d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6268a987421d7aaaaa8cd6092bf9b9340f9d6e412adcd24ea509eb5b3d0108c2?d=identicon)[NicolaeSoitu](/maintainers/NicolaeSoitu)

---

Top Contributors

[![nicolae-soitu](https://avatars.githubusercontent.com/u/43182636?v=4)](https://github.com/nicolae-soitu "nicolae-soitu (1 commits)")

---

Tags

laraveldumptelegram

### Embed Badge

![Health badge](/badges/nicolae-soitu-telegram-dump/health.svg)

```
[![Health](https://phpackages.com/badges/nicolae-soitu-telegram-dump/health.svg)](https://phpackages.com/packages/nicolae-soitu-telegram-dump)
```

###  Alternatives

[fruitcake/laravel-telescope-toolbar

Toolbar for Laravel Telescope based on Symfony Web Profiler

8041.6M3](/packages/fruitcake-laravel-telescope-toolbar)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[adobrovolsky97/illuminar

Debug tool for Laravel Framework

2397.1k](/packages/adobrovolsky97-illuminar)[guanguans/laravel-soar

SQL optimizer and rewriter for laravel. - laravel 的 SQL 优化器和重写器。

2227.8k](/packages/guanguans-laravel-soar)

PHPackages © 2026

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