pzkpde / t_dump
Dumping variables directly in Telegram
Installs: 12 083
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
This package is auto-updated.
Last update: 2025-04-15 18:12:34 UTC
README
Dumping variables directly in Telegram
Installing:
composer require pzkpde/t_dump @dev
Configuring:
You need to specify some variables in the environment (in any way):
-
T_DUMP_CHAT_ID
- Your telegram chat ID with your bot -
T_DUMP_TOKEN
- Your telegram bot token -
T_LOG_CHAT_ID
- Another telegram chat ID with your bot -
T_LOG_TOKEN
- Another telegram bot token
or in Laravel's config file app/plugins.php
like:
return [
't_dump' => [
'chat_id' => env('T_DUMP_CHAT_ID', 'PUT_CHAT_ID_HERE'),
'token' => env('T_DUMP_TOKEN', 'PUT_TOKEN_HERE'),
],
't_log' => [
'chat_id' => env('T_LOG_CHAT_ID', 'PUT_CHAT_ID_HERE'),
'token' => env('T_LOG_TOKEN', 'PUT_TOKEN_HERE'),
],
];
Using:
t_dump([1,2,3]);
t_dump('some_text');
t_log('some_text');
t_dd('some_text');
etc
License:
Licensed under the MIT License