PHPackages                             dkvhin/flysystem-onedrive - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. dkvhin/flysystem-onedrive

ActiveLibrary[File &amp; Storage](/categories/file-storage)

dkvhin/flysystem-onedrive
=========================

One Drive Adapter for Flysystem

v13.0.0(2mo ago)0793↑50%MITPHPPHP &gt;=8.2

Since Aug 1Pushed 2mo agoCompare

[ Source](https://github.com/dkvhin/flysystem-onedrive)[ Packagist](https://packagist.org/packages/dkvhin/flysystem-onedrive)[ Docs](https://github.com/dkvhin)[ RSS](/packages/dkvhin-flysystem-onedrive/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (8)Versions (35)Used By (0)

Flysystem Adapter for OneDrive
==============================

[](#flysystem-adapter-for-onedrive)

[![Author](https://camo.githubusercontent.com/27ed685da15b4e32e9d73de768e96d50d55a06456547a253eeb6ba502fb875f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d61733234372d6f72616e6765)](http://as247.vui360.com/)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Installation
------------

[](#installation)

```
composer require dkvhin/flysystem-onedrive
```

Usage
-----

[](#usage)

- Follow [Azure Docs](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app) to obtain your `ClientId, ClientSecret & TenantId`
- Follow [OneDrive Docs](https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth?view=odsp-graph-online) 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);
```

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance88

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~18 days

Recently: every ~148 days

Total

34

Last Release

61d ago

Major Versions

v5.8.7 → v11.0.42024-08-04

v5.8.9 → v11.1.02024-08-04

10.x-dev → v11.2.32024-08-05

5.8.x-dev → v12.0.02025-03-19

v12.0.0 → v13.0.02026-03-19

PHP version history (3 changes)v1.0.0PHP &gt;=7.1

v1.0.1PHP &gt;=7.4

v11.0.1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ecdf60c6531a6093808b3ac4d44b551814688498fd9586ed6c8d9e73972122c?d=identicon)[dkvhin](/maintainers/dkvhin)

---

Top Contributors

[![as247](https://avatars.githubusercontent.com/u/2641656?v=4)](https://github.com/as247 "as247 (57 commits)")[![dkvhin](https://avatars.githubusercontent.com/u/7764035?v=4)](https://github.com/dkvhin "dkvhin (21 commits)")

---

Tags

phpstoragemicrosoftdriveone drive

### Embed Badge

![Health badge](/badges/dkvhin-flysystem-onedrive/health.svg)

```
[![Health](https://phpackages.com/badges/dkvhin-flysystem-onedrive/health.svg)](https://phpackages.com/packages/dkvhin-flysystem-onedrive)
```

###  Alternatives

[microsoft/azure-storage-common

This project provides a set of common code shared by Azure Storage Blob, Table, Queue and File PHP client libraries.

4316.8M6](/packages/microsoft-azure-storage-common)[azure-oss/storage

Azure Blob Storage PHP SDK

37985.0k5](/packages/azure-oss-storage)[rsd/seafile-php-sdk

This is a PHP package for accessing Seafile Web API

3589.1k](/packages/rsd-seafile-php-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[dgtlss/capsule

A Laravel package for backing up databases and files to external sources with notifications

194.3k](/packages/dgtlss-capsule)[luoyy/ali-oss-storage

aliyun oss filesystem storage for laravel 9+

1529.9k1](/packages/luoyy-ali-oss-storage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
