定制 mactape/telegram-var-dump 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mactape/telegram-var-dump

最新稳定版本:1.0.0

Composer 安装命令:

composer create-project mactape/telegram-var-dump

包简介

PHP Bad Practices, var dump to telegram

README 文档

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)

统计信息

  • 总下载量: 243
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-28