PHPackages                             private-it/flysystem-google-drive - 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. private-it/flysystem-google-drive

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

private-it/flysystem-google-drive
=================================

FlySystem adapter for Google Drive (work with path)

1.4.0(3y ago)207.9k8MITPHP

Since Feb 7Pushed 3y ago2 watchersCompare

[ Source](https://github.com/private-it/flysystem-google-drive)[ Packagist](https://packagist.org/packages/private-it/flysystem-google-drive)[ RSS](/packages/private-it-flysystem-google-drive/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (7)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

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% 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 ~343 days

Total

5

Last Release

1330d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2122240?v=4)[rendol](/maintainers/rendol)[@Rendol](https://github.com/Rendol)

![](https://www.gravatar.com/avatar/18c4519b58d8c087048d75058e947d0ece3b60eb465ecd1792693fe1b0e906be?d=identicon)[private-it](/maintainers/private-it)

---

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)")

---

Tags

Flysystemlaravelgoogle-drive

### Embed Badge

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

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

###  Alternatives

[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[masbug/flysystem-google-drive-ext

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

2682.2M18](/packages/masbug-flysystem-google-drive-ext)[websight/l5-google-cloud-storage

Laravel 5 Flysystem Google Cloud Storage Service Provider

3962.6k](/packages/websight-l5-google-cloud-storage)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1212.5k](/packages/zing-laravel-flysystem-obs)

PHPackages © 2026

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