Download the PHP package joytekmotion/zoho-workdrive without Composer
On this page you can find all versions of the php package joytekmotion/zoho-workdrive. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joytekmotion/zoho-workdrive
More information about joytekmotion/zoho-workdrive
Files in joytekmotion/zoho-workdrive
Package zoho-workdrive
Short Description Laravel flysystem adapter for Zoho Workdrive
License MIT
Informations about the package zoho-workdrive
Flysystem adapter for Zoho Workdrive (uses virtual path)
This package contains Laravel Flysystem adapter for Zoho Workdrive. It uses the virtual path to interact with the Zoho Workdrive API.
Requirements
- PHP 8.1 or higher
- Laravel 8.x or higher
Installation
You can install this package via composer:
Setup
- Add the following zoho credentials to your
.envfile:
To get the ZOHO_CLIENT_ID and ZOHO_CLIENT_SECRET, you need to create a Zoho Self Client in the Zoho Developer Console.
- To generate refresh token, you can use the following command:
Replace {code} with the authorization code you generated from Zoho Developer Console, and copy the refresh token to your .env file.
-
Add the following disk configuration to your
config/filesystems.phpfile: -
Optional: The service provider will be automatically registered by Laravel. If you need to manually register the service provider, add the following to your
config/app.phpfile: -
Add the driver by extending the
Storagefacade in yourAppServiceProvideror any other service provider: - Optional: You can publish the configuration file using the following command:
Usage
To write a file to the disk:
To read a file from the disk:
To check if a file exists:
Acknowledgements
This package is inspired by flysystem-google-drive-ext created by masbug.
License
The MIT License (MIT). Please see License File for more information.
All versions of zoho-workdrive with dependencies
guzzlehttp/guzzle Version ^7.2
league/flysystem Version ^2.1.1|^3.0
illuminate/http Version ^10.0|^11.0
joytekmotion/zoho-oauth Version ^1.0
league/mime-type-detection Version ^1.15