mactape/telegram-var-dump

PHP Bad Practices, var dump to telegram

Installs: 243

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/mactape/telegram-var-dump

1.0.0 2024-09-18 18:51 UTC

This package is auto-updated.

Last update: 2025-09-19 12:00:21 UTC


README

var_dump to telegram for Laravel

Installation and configuration

composer require mactape/telegram-var-dump

In the .env file you need to add these parameters:

TELEGRAM_VAR_DUMP_KEY=your-telegram-bot-key
TELEGRAM_VAR_DUMP_CHAT=your-telegram-user-id
  • Talk to @BotFather and generate a Bot API Token.
  • Then, add your Telegram Bot API Token to .env file:
    TELEGRAM_VAR_DUMP_KEY=your-bot-key
  • Talk to @userinfobot and find your chat id

The output data will look as follows:

@your_telegram_nickname
Id: YOUR_USER_ID <- you need this number
First: Your Tg First Name
Last: Your Tg Last Name
Lang: en

  • Then add your Telegram chat_id to .env file
    TELEGRAM_VAR_DUMP_CHAT=your_user_id

Usage

TgVarDump::dump($something, $someValue, $somethingElse)