定制 sindor/laravel-error-send-telegram 二次开发

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

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

sindor/laravel-error-send-telegram

最新稳定版本:v1.2.1

Composer 安装命令:

composer require sindor/laravel-error-send-telegram

包简介

Laravel handle error and send telegram bot

README 文档

README

Helpful Tool to handle and send error messages via telegram bot

Installation and usage

1. Install package to your laravel project

composer require sindor/laravel-error-send-telegram

2. Publish files

php artisan vendor:publish --tag=laravel-error

3. Telegram bot config (To access send message your users must have a chat with bot)

.env ERROR_TELEGRAM_BOT_TOKEN="<your-token>"
.env ERROR_TELEGRAM_USERS_IDS=<id1>,<id2>
.env ERROR_TELEGRAM_ENABLED=true

4. You can manually send caught exception: (optional)

use Sindor\LaravelErrorSendTelegram\App\Service\Sender;


try {
    //
} catch (\Throwable $e) {
    Sender::handle($e);
}

Configuration

You can configure

  path: config/laravel-error.php

You can customize stub file(template of message)

  path: stubs/laravel-error/message.stub

统计信息

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

GitHub 信息

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

其他信息

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