Download the PHP package raziul/laravel-backup-telegram without Composer
On this page you can find all versions of the php package raziul/laravel-backup-telegram. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download raziul/laravel-backup-telegram
More information about raziul/laravel-backup-telegram
Files in raziul/laravel-backup-telegram
Package laravel-backup-telegram
Short Description Send your Laravel backup files to a Telegram chat or channel.
License MIT
Homepage https://github.com/iraziul/laravel-backup-telegram
Informations about the package laravel-backup-telegram
Laravel Backup Telegram
Easily send your Laravel application's backup files directly to a Telegram chat or channel after each successful backup. This package integrates with spatie/laravel-backup to automate backup delivery and supports large file splitting for Telegram's file size limits.
Features
- Automatically sends backup files to Telegram after each successful backup.
- Supports sending to both private chats and channels.
- Handles large backup files by splitting them into Telegram-compatible chunks.
- Simple configuration and seamless integration with Laravel's backup events.
Requirements
- PHP 8.2+
- Laravel 10, 11, or 12
- spatie/laravel-backup v9.3+
- A Telegram bot and a chat/channel to receive backups
Installation
Install via Composer:
Publish the config file (recommended):
Telegram Setup
- Create a Telegram Bot:
- Talk to @BotFather on Telegram and create a new bot. Copy the API token.
- Add Bot to Your Chat or Channel:
- For a private chat, start a conversation with your bot.
- For a channel, add your bot as an administrator.
- Get the Chat ID:
- Use @userinfobot or getIDs bot to find your chat or channel ID.
Configuration
Update your .env
file or the published config/backup-telegram.php
:
Or in config/backup-telegram.php
:
How it Works
- On every successful backup (
spatie/laravel-backup
event), the package will automatically send the backup file to your configured Telegram chat/channel. - If the file is larger than the Telegram limit (default 49MB), it will be split and sent in parts.
Usage
No manual usage is required! Once installed and configured, the package listens for backup events and sends the files automatically.
If you want to trigger a backup manually:
Advanced: Handling Large Files
- By default, files larger than 49MB are split into chunks and sent as multiple messages.
- You can adjust the chunk size in your config, but it cannot exceed 49MB due to Telegram's limitations.
Testing
Run the test suite:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Raziul Islam
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-backup-telegram with dependencies
illuminate/contracts Version ^10.0||^11.0||^12.0
spatie/laravel-backup Version ^9.3
spatie/laravel-package-tools Version ^1.16