Download the PHP package ahmedweb/laravel-backup-service without Composer
On this page you can find all versions of the php package ahmedweb/laravel-backup-service. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-backup-service
Laravel Backup Service
Laravel Backup Service is a powerful and developer-friendly package designed to automate your Laravel application backups. It seamlessly integrates with Google Drive and Telegram, offering convenient backup uploads, link notifications, and scheduled cleanup โ all through simple Artisan commands.
๐ Features
- ๐ Backup uploads directly to Google Drive
- ๐ Auto-send backup download links to Telegram
- ๐ Store and manage latest backup file links
- ๐งน Automatically delete outdated backup files
- โ Clean, modular, and maintainable code structure
- ๐ป Easy-to-use Artisan commands
- ๐ Fully schedulable via Laravel Scheduler
๐ฆ Installation
Install the package via Composer:
Publish the configuration and service provider:
โ๏ธ Configuration
1. Environment Setup
Add the following variables to your .env file:
2. Filesystem Configuration
Update config/filesystems.php with a new google_drive disk:
๐ฌ Telegram Integration
Step 1: Create a Telegram Bot
- Open Telegram and search for
@BotFather. - Use
/newbotand follow the prompts to create a bot. - Copy the provided token and paste it into your
.envasTELEGRAM_BOT_TOKEN.
Step 2: Add Bot to a Group
- Create a group or use an existing one.
- Add your bot to the group.
- Mention the bot once to activate it.
Step 3: Get Group Chat ID
- Use
@userinfobotor check thechat.idfield via bot API messages. - Paste the group chat ID into your
.envasTELEGRAM_CHAT_ID.
โ๏ธ Laravel 11 Integration
Register Storage Provider
In bootstrap/app.php, register the Google Drive provider:
โฐ Scheduling Backups (Optional)
In bootstrap/app.php, add scheduled commands:
Ensure Laravel Scheduler is set in your server cron:
๐งช Available Artisan Commands
| Command | Description |
|---|---|
backup:store-latest-link |
Stores and sends the latest backup download link via Telegram |
backup:delete-old |
Deletes outdated backup files from Google Drive |
backup:clean-drive |
Cleans up Google Drive backups according to retention rules |
For Laravel 10 or below, schedule commands in
app/Console/Kernel.php.
๐ File Structure
โ Requirements
| Dependency | Version |
|---|---|
| PHP | ^8.2 |
| Laravel | ^11.31 |
spatie/laravel-backup |
^9.3 |
google/apiclient |
^2.15 |
irazasyed/telegram-bot-sdk |
^3.15 |
masbug/flysystem-google-drive-ext |
^2.4 |
yaza/laravel-google-drive-storage |
^4.1 |
๐ค Contributing
Contributions are welcome! Feel free to fork the repo, submit issues, or open pull requests for any improvements or fixes.
๐ License
This package is open-sourced software licensed under the MIT license.
๐จโ๐ป Author
Ahmed Web ๐ง [email protected] ๐ GitHub
๐ Resources
- Google Developer Console โ Create and manage your credentials
- OAuth 2.0 Playground โ Retrieve your refresh token
- Spatie Laravel Backup Docs
- Telegram Bot API
All versions of laravel-backup-service with dependencies
google/apiclient Version ^2.15.0
irazasyed/telegram-bot-sdk Version ^3.15
laravel/framework Version ^11.31
laravel/sanctum Version ^4.0
laravel/tinker Version ^2.9
masbug/flysystem-google-drive-ext Version ^2.4
spatie/laravel-backup Version ^9.3
yaza/laravel-google-drive-storage Version ^4.1