Download the PHP package kwenziwa/database-backup without Composer

On this page you can find all versions of the php package kwenziwa/database-backup. 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 database-backup

πŸ“¦ kwenziwa/database-backup

A Laravel package to automate database backups and upload them to Google Drive.
Seamlessly integrates with Spatie's Laravel Backup and the Google API client.
Ideal for keeping your backups safe and accessible in the cloud.


πŸš€ Features


πŸ“₯ Installation

Install the package via Composer:


βš™οΈ Configuration

Step 1: Publish Config

Creates config/database-backup.php.


πŸ”‘ Google API Setup

1️⃣ Create Google API Credentials

2️⃣ Enable Google Drive API

3️⃣ Save the Credentials File

Move the downloaded JSON key file to:

Ensure the path matches this in your .env:


πŸ“ Set Up Google Drive Access

4️⃣ Get Your Google Drive Folder ID

Add this to your .env:


5️⃣ Share Folder with Service Account


πŸ” Example credentials.json Structure


πŸš€ Usage

Backup your database and upload to Google Drive:

Test Google Drive connection:


🌍 Requirements


πŸ“– Documentation

Command Description
php artisan google-drive:backup Backup database and upload to Google Drive
php artisan google-drive:test Test Google Drive connection and credentials
php artisan vendor:publish --tag=config Publish the package config file

πŸ™Œ Author

Developed by Kwenziwa Khanyile
Feel free to contribute, submit issues, or fork the repository!


πŸ“„ License

MIT Β© 2024 Kwenziwa Khanyile


All versions of database-backup with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
google/apiclient Version ^2.0
spatie/laravel-backup Version ^9.2.8
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 kwenziwa/database-backup contains the following files

Loading the files please wait ....