Download the PHP package jeffersongoncalves/flysystem-google-drive without Composer

On this page you can find all versions of the php package jeffersongoncalves/flysystem-google-drive. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package flysystem-google-drive

![Flysystem Google Drive](https://raw.githubusercontent.com/jeffersongoncalves/flysystem-google-drive/main/art/jeffersongoncalves-flysystem-google-drive.png)

Flysystem Google Drive

Buy Me A Coffee

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A League Flysystem v3 adapter for Google Drive, with a zero-config Laravel driver.

Why this exists

masbug/flysystem-google-drive-ext is effectively unmaintained (open issues piling up, one large PR sitting unmerged for years) and has a bug that makes it unusable as a fresh spatie/laravel-backup destination: BackupDestination::isReachable() lists the backup folder as a health check before ever uploading anything, and masbug's adapter throws instead of returning an empty listing when that folder doesn't exist yet. The very first backup run fails, and the only fix is manually pre-creating the remote folder through the Drive UI.

This package is a clean-room adapter built to not have that bug (and a few other rough edges found while filing it): listContents() and directoryExists() on a path that has never been created return an empty result / false, never an exception. Deletes never silently swallow a real API error as success, moving a folder invalidates every cached descendant (not just the top-level entry), and filenames are escaped before going into a Drive search query.

Installation

Getting Google OAuth credentials

  1. Create a project in the Google Cloud Console and enable the Google Drive API.
  2. Configure the OAuth consent screen, then create an OAuth Web application client (Credentials → Create Credentials → OAuth client ID). Add https://developers.google.com/oauthplayground as an authorized redirect URI.
  3. Go to the OAuth Playground, click the gear icon, tick "Use your own OAuth credentials", and paste your client ID/secret.
  4. Authorize the https://www.googleapis.com/auth/drive scope, exchange the authorization code for tokens, and copy the refresh token.
  5. Important: while your OAuth consent screen is in "Testing" publishing status, refresh tokens expire after 7 days. Move the app to "In production" (Google Cloud Console → OAuth consent screen → Publish App) so the refresh token doesn't silently stop working a week after you set it up. This exact gotcha is what broke a real production backup setup while building this package.

Laravel usage

Nothing to register manually — the service provider is auto-discovered and adds a google-drive Flysystem driver on boot. Just configure a disk:

Plain PHP usage (no Laravel)

What's deliberately simplified (v1)

Testing

An optional integration suite under tests/Integration sanity-checks the adapter against a real Drive account. It skips cleanly when credentials aren't set, so it never affects the default suite or CI:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of flysystem-google-drive with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
google/apiclient Version ^2.18
illuminate/filesystem Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
league/flysystem Version ^3.28
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeffersongoncalves/flysystem-google-drive contains the following files

Loading the files please wait ...