mactape / telegram-var-dump
PHP Bad Practices, var dump to telegram
Installs: 242
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.2
- ext-curl: *
- illuminate/support: ^9|^10|^11
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)