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:
-
Ensure the package is properly installed and configured.
-
Use the custom ExceptionHandler in your Laravel or PHP application.
-
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
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-10