定制 leko-team/telegram-errors-notifications 二次开发

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

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

leko-team/telegram-errors-notifications

最新稳定版本:1.0.0

Composer 安装命令:

composer require leko-team/telegram-errors-notifications

包简介

A package for handling and notifying errors via Telegram

README 文档

README

Description

A PHP package for handling and notifying errors via Telegram. This package helps developers receive real-time error notifications in a Telegram chat, making debugging and monitoring more efficient.

Installation

To install the package, run the following command:

composer require leko-team/telegram-errors-notifications

Configuration

Add the following line to your Handler file to extend its functionality:

use LekoTeam\TelegramErrorsNotifications\Exceptions\Handler as ExceptionHandler;

Configure your Telegram Bot API token and chat ID in your environment variables or configuration file:

TELEGRAM_BOT_TOKEN=your-bot-token-here TELEGRAM_CHAT_ID=your-chat-id-here

Usage

To start receiving error notifications via Telegram, follow these steps:

  1. Ensure the package is properly installed and configured.

  2. Use the custom ExceptionHandler in your Laravel or PHP application.

  3. When an error occurs, the package will automatically send a notification to the specified Telegram chat.

Testing

To test the package, you can trigger an error manually:

throw new Exception("Test Telegram Error Notification");

Check your Telegram chat to see if the notification arrives correctly.

Credits

Developed and maintained by Leko Team. Special thanks to contributors and testers who helped improve the package.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-10