dkvhin/flysystem-onedrive

One Drive Adapter for Flysystem
1,097
Install
composer require dkvhin/flysystem-onedrive
Latest Version:v13.0.0
PHP:>=8.2
License:MIT
Last Updated:Mar 19, 2026
Links: GitHub  ·  Packagist
Maintainer: dkvhin

Flysystem Adapter for OneDrive

Author Software License

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
bpartner/storage

Storage for global variables

41 0
squigg/azure-queue-laravel

Laravel Queue Driver for Microsoft Azure Storage Queue

292,336 44
unm/laravel4-azure

A laravel 4.1 service provider package that wraps the Windows Azure PHP SDK

7 0
tes/laravel-google-drive-storage

A Laravel package that integrates Google Drive as a storage option, allowing sea...

3,057 15