makhnanov/php-telegram-html-debug

Easy Debug With Telegram Channel With HTML files

5.0.0 2025-07-15 07:54 UTC

This package is auto-updated.

Last update: 2025-07-15 07:55:24 UTC


README

This is library for Easy debug with symfony/var-dumper dd() / dump(),
but in html in telegram bot message.

TL;DR;

composer require makhnanov/php-telegram-html-debug
composer require --dev makhnanov/php-telegram-html-debug
\TD::$token = getenv('DEBUG_BOT_TOKEN');
\TD::$chat_id = getenv('DEBUG_BOT_CHAT_ID');
\TD::$message_thread_id = getenv('DEBUG_BOT_MESSAGE_THREAD_ID');
td($exception, 'Error!');
# Or
telegram_debug($token, $chatId, $varDump, $caption, $messageThreadId);