PHPackages                             tharindu/laravel-backup - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. tharindu/laravel-backup

ActiveLibrary[File &amp; Storage](/categories/file-storage)

tharindu/laravel-backup
=======================

A Laravel package to backup your application database and files to a cloud storage.

v1.0.0(2y ago)011MITPHPPHP &gt;=8.1

Since Jun 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/TharinduWijayarathna/Laravel-Backup)[ Packagist](https://packagist.org/packages/tharindu/laravel-backup)[ RSS](/packages/tharindu-laravel-backup/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel Backup Package
======================

[](#laravel-backup-package)

A Laravel package to backup your application database and files to a cloud storage.

Installation
------------

[](#installation)

To install the package, use composer:

```
composer require tharindu/laravel-backup
```

Configuration
-------------

[](#configuration)

Add the following environment variables to your `.env` file:

```
GOOGLE_DRIVE_CLIENT_ID=your-google-drive-client-id
GOOGLE_DRIVE_CLIENT_SECRET=your-google-drive-client-secret
GOOGLE_DRIVE_REFRESH_TOKEN=your-google-drive-refresh-token
```

Usage
-----

[](#usage)

To create a database backup and upload it to Google Drive, use the following artisan command:

```
php artisan make:backup
```

Google Drive Integration
------------------------

[](#google-drive-integration)

To obtain the necessary Google Drive credentials, follow these steps:

1. **Create a Google Cloud Project:**

    - Go to the [Google Cloud Console](https://console.cloud.google.com/).
    - Create a new project or select an existing project.
2. **Enable the Google Drive API:**

    - Navigate to the "API &amp; Services" dashboard.
    - Enable the Google Drive API for your project.
3. **Create OAuth 2.0 Credentials:**

    - Go to "Credentials" and create OAuth 2.0 credentials.
    - Select "Web application" and configure the redirect URIs (e.g., ).
    - Save the credentials and note down the Client ID and Client Secret.
4. **Generate a Refresh Token:**

    - Use a tool like [OAuth 2.0 Playground](https://developers.google.com/oauthplayground/) to generate a refresh token.
    - Configure the OAuth 2.0 Playground to use your Client ID and Client Secret.
    - Authorize the Google Drive API and generate a refresh token.
5. **Add Credentials to `.env` File:**

    - Copy the Client ID, Client Secret, and Refresh Token into your `.env` file as shown above.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

733d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84404?v=4)[Tharindu Madushanka](/maintainers/tharindu)[@tharindu](https://github.com/tharindu)

---

Top Contributors

[![TharinduWijayarathna](https://avatars.githubusercontent.com/u/81649942?v=4)](https://github.com/TharinduWijayarathna "TharinduWijayarathna (2 commits)")

### Embed Badge

![Health badge](/badges/tharindu-laravel-backup/health.svg)

```
[![Health](https://phpackages.com/badges/tharindu-laravel-backup/health.svg)](https://phpackages.com/packages/tharindu-laravel-backup)
```

###  Alternatives

[illuminate/filesystem

The Illuminate Filesystem package.

16165.0M3.2k](/packages/illuminate-filesystem)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
