定制 bangnokia/laravel-backup-telegram 二次开发

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

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

bangnokia/laravel-backup-telegram

Composer 安装命令:

composer require bangnokia/laravel-backup-telegram

包简介

Upload your backup file to telegram channel for spatie/laravel-backup

README 文档

README

This package requires spatie/laravel-backup to work, it supports for uploading the backup file to a telegram channel.

Because this package use Telegram API, the file size must be limited to 50MB. So if your database is big, this solution isn't for your business. If the file size is bigger than 50MB, the package will split the file into multiple files, using the split command.

Compatibility

This package supports Laravel 9, 10, 11 and 12.

Setup

Install this package

composer require bangnokia/laravel-backup-telegram

Edit your config/services.php file, then add these lines. I tried to match config with the package Telegram notification channel

'telegram-bot-api' => [
    'token' => env('TELEGRAM_BOT_TOKEN'),
    'chat_id' => env('TELEGRAM_CHAT_ID')
]

Usage

This package automatically add a event listener when a backup created successfully. So you just simply run php artisan backup:run, your backup file will be uploaded to Telegram channel.

*If you don't use the email notification, please publish the backup.php config file and change mail.to value to an empty string, refer to this issue Does not work in Laravel 9

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固