dkvhin/flysystem-onedrive
Flysystem Adapter for OneDrive
Installation
composer require dkvhin/flysystem-onedrive
Usage
- Follow Azure Docs to obtain your
ClientId, ClientSecret & TenantId - Follow OneDrive Docs to obtain your
refreshToken
$token=new \Dkvhin\Flysystem\OneDrive\OneDriveOauth();
$token->setClientId('[Client ID]');
$token->setTenantId('[Tenant ID]');
$token->setClientSecret('[Client secret]');
$token->setRefreshToken('[Refresh token]');
$graph = new \Microsoft\Graph\Graph();
$graph->setAccessToken($token->getAccessToken());
$adapter = new \Dkvhin\Flysystem\OneDrive\OneDriveAdapter($graph, '[root path]');
$filesystem = new \League\Flysystem\Filesystem($adapter);
Related Packages
ridesoft/azurecloudmap
PHP Utility library to interface with Microsoft Windows Azure Cloud API filesyst...
55
0
tes/laravel-google-drive-storage
A Laravel package that integrates Google Drive as a storage option, allowing sea...
3,057
15