承接 mohamadmurad/laravel-telegram-reporter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

mohamadmurad/laravel-telegram-reporter

最新稳定版本:v1.5

Composer 安装命令:

composer require mohamadmurad/laravel-telegram-reporter

包简介

Get Crud Report by telegram

README 文档

README

Easy Send Activity For Any Model To Your Telegram

Documentation

install the package via composer

composer require mohamadmurad/laravel-telegram-reporter

Config file

This package publishes a config/telegram-report.php file. If you already have a file by that name, you must rename or remove it, as it will conflict with this package. You could optionally merge your own values with those required by this package, as long as the keys that this package expects are present. See the source file for more details telegram-report.php

Publish the config/telegram-report.php config file with:

php artisan telegram-report:install

Add Configration data to your .env file see how to create bot

TELEGRAM_TOKEN="Token for your telegram bot"  
TELEGRAM_CHAT_ID ="your account id in telegram"

If you want to log CRUD on any model

Add package trait to any model you want to get report about it example :

use mohamadmurad\LaravelTelegramReport\Traits\HasTelegramReports;

class User extends Authenticatable
{
    use HasTelegramReports;
....

}

the report send after create , update or delete any record in this model

If you want to send Errors to your Telegram bot

Add this code to your Exception Handler.php

class Handler extends ExceptionHandler
{
     public function render($request, Throwable $e)
    {
        if (app()->bound('telegram-report')) {
            app('telegram-report')->notify($e, app('request'));
        }
        
        .... 
    }
....

}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固