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

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

as247/flysystem-google-drive
============================

Google Drive Adapter for Flysystem

v3.0.2(1y ago)05.8k↓50%MITPHPPHP &gt;=7.1

Since Oct 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (16)Used By (0)

Flysystem Adapter for Google Drive
==================================

[](#flysystem-adapter-for-google-drive)

[![Author](https://camo.githubusercontent.com/27ed685da15b4e32e9d73de768e96d50d55a06456547a253eeb6ba502fb875f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d61733234372d6f72616e6765)](http://as247.vui360.com/)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

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

[](#installation)

```
composer require as247/flysystem-google-drive
```

Usage
-----

[](#usage)

#### Follow [Google Docs](https://developers.google.com/drive/v3/web/enable-sdk) to obtain your `ClientId, ClientSecret & refreshToken`

[](#follow-google-docs-to-obtain-your-clientid-clientsecret--refreshtoken)

#### In addition, you can also check these easy-to-follow tutorial by [@ivanvermeyen](https://github.com/ivanvermeyen/laravel-google-drive-demo)

[](#in-addition-you-can-also-check-these-easy-to-follow-tutorial-by-ivanvermeyen)

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

```
$client = new \Google_Client();
$client->setClientId('[app client id].apps.googleusercontent.com');
$client->setClientSecret('[app client secret]');
$client->fetchAccessTokenWithRefreshToken('[your refresh token]');

$service = new \Google_Service_Drive($client);

$options=[
    'root'=>'[Root folder id]',
    'teamDrive'=>'[Team drive id]'//If your root folder inside team drive
    'google_drive_adapter_prefix'=>'[Path prefix]',//Path prefix inside root folder
];

$adapter = new \As247\Flysystem\GoogleDrive\GoogleDriveAdapter($service, $options);

$filesystem = new \League\Flysystem\Filesystem($adapter);
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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 ~146 days

Recently: every ~29 days

Total

15

Last Release

718d ago

Major Versions

v1.0.5 → 2.x-dev2024-01-31

v1.0.6 → v3.0.02024-02-03

v1.1 → 3.x-dev2024-05-30

PHP version history (2 changes)v1.0PHP &gt;=5.6

v1.0.1PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![as247](https://avatars.githubusercontent.com/u/2641656?v=4)](https://github.com/as247 "as247 (39 commits)")

---

Tags

phpgooglestoragegoogle-drivedrive

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)

PHPackages © 2026

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