Download the PHP package tes/laravel-google-drive-storage without Composer
On this page you can find all versions of the php package tes/laravel-google-drive-storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tes/laravel-google-drive-storage
More information about tes/laravel-google-drive-storage
Files in tes/laravel-google-drive-storage
Package laravel-google-drive-storage
Short Description A Laravel package that integrates Google Drive as a storage option, allowing seamless file uploads, folder creation, and file management directly from your Laravel application.
License MIT
Homepage https://github.com/Thomas-Emad/laravel-google-drive-storage
Informations about the package laravel-google-drive-storage
Laravel Google Drive Storage
A Laravel package that integrates Google Drive as a storage option, allowing seamless file uploads, folder creation, and file management directly from your Laravel application.
Installation
To install this package, you need to include it in your composer.json
file:
Configuration
Ensure you have the following environment variables set in your .env
file:
Obtaining a Refresh Token To obtain a refresh token, follow the guide provided in this article: How to Generate Refresh Token and Use Them to Access Google API.
Also you need to add in file config/filesystems.php
file:
Usage
Here are examples of how to use the methods provided by the package.
uploadFile
Upload a file to Google Drive.
createFolder
Create a new folder in Google Drive.
search
Search for files or folders in Google Drive by name.
listFilesInFolder
List files within a specific folder.
getFileMetadata
Retrieve metadata of a specific file.
updateFileMetadata
Update the metadata (e.g., name) of a specific file.
download
Download a file from Google Drive.
url
Get the URL of a file stored in Google Drive.
delete
Delete a file from Google Drive.
License
This package is licensed under the MIT License. See the LICENSE file for more details.