Download the PHP package klytron/laravel-google-drive-filesystem without Composer

On this page you can find all versions of the php package klytron/laravel-google-drive-filesystem. 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 laravel-google-drive-filesystem

klytron/laravel-google-drive-filesystem

Latest Version on Packagist Total Downloads License PHP Version Laravel Version

A robust Google Drive filesystem adapter for Laravel that provides seamless integration with Google Drive as a storage disk. Features configurable debug logging, automatic folder creation, and full Laravel Filesystem API compatibility.

✨ Features

📋 Requirements

🚀 Quick Installation

Install via Composer:

For advanced installation and VCS/development setup, see docs/INSTALLATION.md.

⚙️ Quick Configuration

Publish the config file and set up your .env:

Add your Google Drive credentials to your .env file. For a detailed step-by-step guide, see docs/GETTING-TOKENS.md.

🔑 Environment Variables

Shared Drives (Team Drives)

If you are using Google Workspace Shared Drives (formerly Team Drives), set:

When enabled, all Drive operations automatically pass supportsAllDrives=true and includeItemsFromAllDrives=true.

OAuth Scopes (Least Privilege)

By default the package requests full read/write access. To follow least privilege, restrict the scopes config value (GOOGLE_DRIVE_SCOPES) to the minimum your app needs:

Use case Scope Notes
Full read/write (default) https://www.googleapis.com/auth/drive Required for uploads, updates, deletes
Read-only https://www.googleapis.com/auth/drive.readonly Listing and downloading only; writes fail
App data only https://www.googleapis.com/auth/drive.appdata Only the app's own hidden folder

Multiple scopes can be comma-separated (GOOGLE_DRIVE_SCOPES="scope-a,scope-b") or set as an array in config/google-drive.php.

Important: the refresh token must have been generated with (at least) these scopes. After narrowing scopes, re-run the OAuth flow from docs/GETTING-TOKENS.md using the narrowed scope in Step 1, otherwise API calls fail with permission errors.

Health Check

Validate credentials without touching any files (safe for scheduled jobs):

Exit code 0 means credentials are valid; anything else prints an actionable error (e.g. which env var to rotate). Token refresh is retried once automatically on transient 401/5xx failures before giving up.

Debug Logging Options

The debug logging options default to APP_DEBUG but can be overridden:

Production Tip: Set both debug options to false in production to prevent unnecessary log output.

📖 Usage

After configuring, you can use the Google Drive disk in your Laravel application like this:

🗂️ Working with Folders

For advanced usage and more examples, see docs/USAGE.md.

🔧 Laravel Compatibility

📝 License

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

🔗 Links

📚 Documentation


All versions of laravel-google-drive-filesystem with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/filesystem Version ^10.0|^11.0|^12.0|^13.0
google/apiclient Version ^2.15
league/flysystem Version ^3.0
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 klytron/laravel-google-drive-filesystem contains the following files

Loading the files please wait ...