PHPackages                             kalhoang/flysystem-google-drive-extra - 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. kalhoang/flysystem-google-drive-extra

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

kalhoang/flysystem-google-drive-extra
=====================================

FlySystem adapter for Google Drive (work with path)

1.4.1(2y ago)04MITPHP

Since Feb 7Pushed 2y agoCompare

[ Source](https://github.com/we3d-team/flysystem-google-drive-extra)[ Packagist](https://packagist.org/packages/kalhoang/flysystem-google-drive-extra)[ RSS](/packages/kalhoang-flysystem-google-drive-extra/feed)WikiDiscussions master Synced 1mo ago

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

flysystem-google-drive
======================

[](#flysystem-google-drive)

FlySystem adapter for Google Drive (work with path)

This project is wrapper of [nao-pon/flysystem-google-drive](https://github.com/nao-pon/flysystem-google-drive)

Read more information [this](https://github.com/nao-pon/flysystem-google-drive)

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

[](#installation)

```
composer require private-it/flysystem-google-drive:dev-master
```

Config
------

[](#config)

- [Getting your Client ID and Secret](https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README/1-getting-your-dlient-id-and-secret.md)
- [Getting your Refresh Token](https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README/2-getting-your-refresh-token.md)
- [Getting your Root Folder ID](https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README/3-getting-your-root-folder-id.md)

Config params:

```
[
    'clientId' => 'xxxxxxxxxxx.apps.googleusercontent.com',
    'clientSecret' => 'xxxxxxxxxxx',
    'refreshToken' => 'xxxxxxxxxxx',
    'folderId' => 'xxxxxxxxxxx',
    'sheetId' => 'xxxxxxxxxxx',
];
```

**folderId** - uses as root folder for upload/read.

**sheetId** - file id of "Google Sheets" document. Uses for save path-fileId. This document must be shared for public read.

Usage example
-------------

[](#usage-example)

See `examples/test.php`

```
git clone https://github.com/private-it/flysystem-google-drive.git
composer install
```

Copy `examples/config.example.php` to `examples/config.php`

```
php examples/test.php
```

Usage with Laravel
------------------

[](#usage-with-laravel)

Configuration google drive `config/filesystems.php`

```
    'disks' => [
...
        'googleDrive' => [
            'driver' => 'googleDrive',
            'clientId' => env('GOOGLE_DRIVE_CLIENT_ID'),
            'clientSecret' => env('GOOGLE_DRIVE_CLIENT_SECRET'),
            'refreshToken' => env('GOOGLE_DRIVE_REFRESH_TOKEN'),
            'folderId' => env('GOOGLE_DRIVE_FOLDER_ID'),
            'sheetId' => env('GOOGLE_DRIVE_PATH_MANAGER_SHEET_ID'),
        ],
...
    ],
```

\[Laravel v4\] Add ServiceProvider to `config/app.php`

```
'providers' => [
    ...
    PrivateIT\FlySystem\GoogleDrive\GoogleDriveServiceProvider::class
    ...
]
```

*For custom `PathManager`* you can set binding in file `bootstrap/app.php`

```
$app->bind(\PrivateIT\FlySystem\GoogleDrive\PathManager::class, \PrivateIT\FlySystem\GoogleDrive\GoogleSheetsPathManager::class);
```

Usage:

```
$disk = \Storage::disk('googleDrive');
$adapter = $disk->getDriver()->getAdapter();

$dir = 'test/sub1/sub2';
$fileName = 'test/sub1/sub2/new-file-1.txt';

var_dump($disk->makeDirectory($dir));
var_dump($disk->put($fileName, 'test content'));
var_dump($adapter->getUrl($fileName));
var_dump($disk->deleteDir($dir));
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 72.7% 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 ~364 days

Recently: every ~379 days

Total

6

Last Release

827d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12d4fbc90a544324ad47f7c8564507854376608196938ef0bd10883df3505ec0?d=identicon)[kalhoang](/maintainers/kalhoang)

---

Top Contributors

[![Rendol](https://avatars.githubusercontent.com/u/2122240?v=4)](https://github.com/Rendol "Rendol (16 commits)")[![MuhammedAlkhudiry](https://avatars.githubusercontent.com/u/41856121?v=4)](https://github.com/MuhammedAlkhudiry "MuhammedAlkhudiry (3 commits)")[![ato10](https://avatars.githubusercontent.com/u/1146231?v=4)](https://github.com/ato10 "ato10 (1 commits)")[![goldsteam](https://avatars.githubusercontent.com/u/102119261?v=4)](https://github.com/goldsteam "goldsteam (1 commits)")[![we3d-team](https://avatars.githubusercontent.com/u/91526491?v=4)](https://github.com/we3d-team "we3d-team (1 commits)")

---

Tags

Flysystemlaravelgoogle-drive

### Embed Badge

![Health badge](/badges/kalhoang-flysystem-google-drive-extra/health.svg)

```
[![Health](https://phpackages.com/badges/kalhoang-flysystem-google-drive-extra/health.svg)](https://phpackages.com/packages/kalhoang-flysystem-google-drive-extra)
```

###  Alternatives

[masbug/flysystem-google-drive-ext

Flysystem adapter for Google Drive with seamless virtual&lt;=&gt;display path translation

2631.7M14](/packages/masbug-flysystem-google-drive-ext)[private-it/flysystem-google-drive

FlySystem adapter for Google Drive (work with path)

207.8k](/packages/private-it-flysystem-google-drive)[websight/l5-google-cloud-storage

Laravel 5 Flysystem Google Cloud Storage Service Provider

3662.2k](/packages/websight-l5-google-cloud-storage)[danhunsaker/laravel-flysystem-others

Automatically registers every third-party Flysystem adapter it recognizes as a Laravel Filesystem Driver.

2332.5k](/packages/danhunsaker-laravel-flysystem-others)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)[quix-labs/laravel-supabase-flysystem

Supabase Adapter for Laravel Flysystem Storage

169.9k](/packages/quix-labs-laravel-supabase-flysystem)

PHPackages © 2026

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