PHPackages                             la-haute-societe/yii2-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. la-haute-societe/yii2-flysystem-google-drive

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

la-haute-societe/yii2-flysystem-google-drive
============================================

Flysystem Google Drive filesystem for Yii2

1.1.0(3y ago)724.4k↓61.4%5[2 issues](https://github.com/la-haute-societe/yii2-flysystem-google-drive/issues)MITPHP

Since Oct 25Pushed 3y ago5 watchersCompare

[ Source](https://github.com/la-haute-societe/yii2-flysystem-google-drive)[ Packagist](https://packagist.org/packages/la-haute-societe/yii2-flysystem-google-drive)[ RSS](/packages/la-haute-societe-yii2-flysystem-google-drive/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Yii2 Flysystem Google Drive
===========================

[](#yii2-flysystem-google-drive)

Flysystem Google Drive filesystem for Yii2

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist la-haute-societe/yii2-flysystem-google-drive "^1.0.0"

```

or add

```
"la-haute-societe/yii2-flysystem-google-drive": "^1.0.0"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

This extension is a Google Drive Filesystem for Yii2 Flysystem extension by @creocoder.

It uses the [Flysystem Adapter for Google Drive](https://github.com/nao-pon/flysystem-google-drive) by @nao-pon

For usage instructions, see [Yii2 Flysystem documentation](https://github.com/creocoder/yii2-flysystem)

You can get help on how to get clientID, clientSecret and refreshToken [here](https://github.com/ivanvermeyen/laravel-google-drive-demo/blob/master/README.md#create-your-google-drive-api-keys) (Thx @ivanvermeyen)

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

[](#configuration)

### Local filesystem

[](#local-filesystem)

Configure application `components` as follows

```
return [
    //...
    'components' => [
        //...
        'googleDrive' => [
            'class' =>  lhs\Yii2FlysystemGoogleDrive\GoogleDriveFilesystem::class,
            'clientId'     => 'xxx YOUR CLIENT ID xxx',
            'clientSecret' => 'xxx YOUR CLIENT SECRET xxx',
            'refreshToken' => 'xxx YOUR REFRESH TOKEN xxx',
//             'driveId'     => 'xxx YOUR TEAM DRIVE ID xxx',
            // 'rootFolderId' => 'xxx ROOT FOLDER ID xxx'
        ],
    ],
];
```

You can then access the flysystem API like:

```
$contents = Yii::$app->googleDrive->listContents();
...
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community13

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

Total

2

Last Release

1234d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/9fd1947ef8f9b4e7b6f1782c87ade771ff646d15941f6e5347605bdf16fada71?d=identicon)[la-haute-societe](/maintainers/la-haute-societe)

---

Top Contributors

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

---

Tags

flysystem-adaptergoogle-drivegoogle-drive-filesystemyiifilesystemFlysystemgooglefileyii2extensiondrive

### Embed Badge

![Health badge](/badges/la-haute-societe-yii2-flysystem-google-drive/health.svg)

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

###  Alternatives

[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M63](/packages/creocoder-yii2-flysystem)[nemmo/yii2-attachments

Extension for file uploading and attaching to the models

6416.7k5](/packages/nemmo-yii2-attachments)

PHPackages © 2026

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