Download the PHP package uraymr/laravel-googledrive-ext without Composer

On this page you can find all versions of the php package uraymr/laravel-googledrive-ext. 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-googledrive-ext

Laravel Google Drive Storage (for Laravel 12)

Flysystem v3 adapter for Google Drive, built for Laravel 12.

This package provides a Flysystem v3 adapter that integrates Google Drive with Laravel's Storage facade, plus a small Gdrive helper utility for common file operations.


Demo & Token Setup Guide

For a full working demo and step-by-step guide to obtain your Google Drive credentials (Service Account or OAuth Token) and Folder ID, visit:

👉 UrayMR/demo-laravel-googledrive-ext

The demo repository includes:


Quick Example

Once installed and configured, you can immediately use Google Drive storage just like any other Laravel disk:

Highlights

Requirements

These are defined in composer.json for this package.

These packages are built specifically for Laravel 12 and Flysystem v3. Using versions earlier than Laravel 12 or Flysystem v3 will result in compatibility issues. Laravel ^10 may work on this package, but it is not recommended to use it.

Installation

Install the package via Composer:

Laravel package discovery will register the service provider automatically. If you don't use package discovery, register the provider in config/app.php:

Configuration

Add a google disk to your application's config/filesystems.php disks array. The service provider expects the disk config to contain the authentication and optional settings.

Example disk configuration (Service Account):

Example disk configuration (OAuth client + refresh token):

Important config keys used by the service provider:

How it works (brief)

Usage

Once configured, use the Laravel Storage facade as usual:

Or use the package helper Gdrive (convenience static methods):

Available Gdrive methods (static):

Additional methods:

These call Storage::disk($disk ?? 'google') internally — pass a different disk name if you registered multiple google-like disks.

Tips & Troubleshooting

Contributing

Contributions, bug reports and feature requests are welcome. Please open issues or pull requests on the repository.

License

This package is open-source library licensed under the MIT license.

Author

Uray Muhammad R. ([email protected])

Acknowledgements

This package is inspired by and built upon the amazing work of:

Huge thanks to these developers and open-source communities for their contributions! 💚


All versions of laravel-googledrive-ext with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
laravel/framework Version ^12.0
league/flysystem Version ^3.0
google/apiclient Version ^2.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 uraymr/laravel-googledrive-ext contains the following files

Loading the files please wait ...