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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-backup-service

Laravel Backup Service

Latest Version on Packagist

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


๐Ÿ“ฆ 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

  1. Open Telegram and search for @BotFather.
  2. Use /newbot and follow the prompts to create a bot.
  3. Copy the provided token and paste it into your .env as TELEGRAM_BOT_TOKEN.

Step 2: Add Bot to a Group

  1. Create a group or use an existing one.
  2. Add your bot to the group.
  3. Mention the bot once to activate it.

Step 3: Get Group 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


All versions of laravel-backup-service with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ahmedweb/laravel-backup-service contains the following files

Loading the files please wait ...