PHPackages                             funnydevjsc/google-drive-laravel-integrate - 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. funnydevjsc/google-drive-laravel-integrate

ActiveLibrary

funnydevjsc/google-drive-laravel-integrate
==========================================

Laravel package for Google Drive management

1.0.5(4mo ago)30111↓100%29MITPHPPHP ^8.1|^8.2|^8.3|^8.4

Since Jan 27Pushed 4mo agoCompare

[ Source](https://github.com/funnydevjsc/google-drive-laravel-integrate)[ Packagist](https://packagist.org/packages/funnydevjsc/google-drive-laravel-integrate)[ Docs](https://github.com/funnydevjsc/google-drive-laravel-integrate)[ RSS](/packages/funnydevjsc-google-drive-laravel-integrate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (7)Used By (0)

Google Drive Laravel
====================

[](#google-drive-laravel)

The free Laravel package to help you manage your Google Drive

Use Cases
---------

[](#use-cases)

- CRUD files and folders on your Google Drive
- Upload and download without normal Google Drive exceeded limits

Features
--------

[](#features)

- Dynamic Google Service credentials from config/google-service.php
- Dynamic Google Drive properties from config/google-drive.php
- Easy to CRUD files and folders on your Google Drive with a simple line code

Know issues
-----------

[](#know-issues)

- This package uses the latest official SDK, libraries and methods from Google then it might be large (around 30mb for dependency package google/apiclient) for shared hosting.
- Please consider your server's environment before using this package.
- However, we still recommend that you follow the latest writing style for Google libraries to ensure safety, compliance, CI/CD and most importantly if you are using services

Requirements
------------

[](#requirements)

- **PHP**: 8.1 or higher
- **Laravel** 9.0 or higher

Quick Start
-----------

[](#quick-start)

If you prefer to install this package into your own Laravel application, please follow the installation steps below

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

[](#installation)

#### Step 1. Install a Laravel project if you don't have one already

[](#step-1-install-a-laravel-project-if-you-dont-have-one-already)

#### Step 2. Require the current package using composer:

[](#step-2-require-the-current-package-using-composer)

```
composer require funnydevjsc/google-drive-laravel-integrate
```

#### Step 3. Create a Google Service credentials:

[](#step-3-create-a-google-service-credentials)

- As our guide at .

#### Step 4. Publish the controller file and config file

[](#step-4-publish-the-controller-file-and-config-file)

```
php artisan vendor:publish --provider="FunnyDev\GoogleDrive\GoogleDriveServiceProvider" --tag="funnydev-google-drive"
```

If publishing files fails, please create corresponding files at the path `config/google-drive.php` from this package.

#### Step 5. Update the various config settings in the published config file:

[](#step-5-update-the-various-config-settings-in-the-published-config-file)

- After publishing the package assets a configuration file will be located at `config/google-drive.php`.
- Find your Google Drive parent folder ID and fill into `config/google-drive.php` file like this (your files and folders might be uploaded and managed within this parent folder):

[![](screenshots/google-drive-create-parent-folder-sample.png)](screenshots/google-drive-create-parent-folder-sample.png)

[![](screenshots/google-drive-get-parent-folder-id-sample.png)](screenshots/google-drive-get-parent-folder-id-sample.png)

Testing
-------

[](#testing)

```
use FunnyDev\GoogleDrive\GoogleDriveSdk;

class TestDrive
{
    /**
     * Handle the event.
     * @throws \Exception
     */
    public function handle(): void
    {
        $drive = new GoogleDriveSdk();

        $folderId = $drive->createFolder('test', config('google-drive.parent_folder_id'));

        $fileId = $drive->uploadFile(
            $folderId,
            'file_uploaded.txt',
            file_get_contents(storage_path('file.txt')),
            'text/plain'
        );

        $drive->shareResource($fileId, 'test@example.com', 'writer');

        $file = $drive->downloadFile($fileId);
        file_put_contents(storage_path('file_downloaded.txt'), $file);

        if ($drive->deleteResource($fileId)) {
            echo 'Deleted file';
        }
    }
}
```

Feedback
--------

[](#feedback)

Respect us in the [Laravel Việt Nam](https://www.facebook.com/groups/167363136987053)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  or use the issue tracker.

Credits
-------

[](#credits)

- [Funny Dev., Jsc](https://github.com/funnydevjsc)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance74

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~64 days

Recently: every ~78 days

Total

6

Last Release

149d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.0.4PHP ^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddb914505b68528e0f47a1a0c04b7e3bbe59d9849546c7d44654faf5294b0293?d=identicon)[funnydevjsc](/maintainers/funnydevjsc)

---

Top Contributors

[![fdteam-deanie](https://avatars.githubusercontent.com/u/146782529?v=4)](https://github.com/fdteam-deanie "fdteam-deanie (11 commits)")

---

Tags

laravelgooglepackagedriveGDrive

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/funnydevjsc-google-drive-laravel-integrate/health.svg)

```
[![Health](https://phpackages.com/badges/funnydevjsc-google-drive-laravel-integrate/health.svg)](https://phpackages.com/packages/funnydevjsc-google-drive-laravel-integrate)
```

###  Alternatives

[ozankurt/google-analytics

Laravel Google Analytics

7616.7k](/packages/ozankurt-google-analytics)

PHPackages © 2026

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