PHPackages                             doanhuuhoa1603/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. doanhuuhoa1603/flysystem-onedrive

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

doanhuuhoa1603/flysystem-onedrive
=================================

Flysystem Adapter for the OneDrive API

v1.0.4(5y ago)04MITPHPPHP ^7.0CI failing

Since Aug 12Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (0)

This package is based on the repo no more maintained by nicolasbeauvais (nicolasbeauvais/flysystem-onedrive)
============================================================================================================

[](#this-package-is-based-on-the-repo-no-more-maintained-by-nicolasbeauvais-nicolasbeauvaisflysystem-onedrive)

Flysystem adapter for the Microsoft OneDrive API
================================================

[](#flysystem-adapter-for-the-microsoft-onedrive-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8cac300b35d7c0740d1ea4570663459ba7ed00dd8f0985140212250c574c7feb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f616e687575686f61313630332f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/doanhuuhoa1603/flysystem-onedrive)

This package contains a [Flysystem](https://flysystem.thephpleague.com/) adapter for OneDrive. Under the hood, the [Microsoft Graph SDK](https://github.com/microsoftgraph/msgraph-sdk-php) is used.

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

[](#installation)

You can install the package via composer:

```
composer require doanhuuhoa1603/flysystem-onedrive
```

Usage
-----

[](#usage)

The first thing you need to do is get an authorization token for the Microsoft Graph API. For that you need to create an app on the [Microsoft App Registration Portal](https://apps.dev.microsoft.com/).

```
use Microsoft\Graph\Graph;
use League\Flysystem\Filesystem;
use DoanHuuHoa1603\FlysystemOneDrive\OneDriveAdapter;

$graph = new Graph();
$graph->setAccessToken('EwBIA8l6BAAU7p9QDpi...');

$adapter = new OneDriveAdapter($graph, 'root');
$filesystem = new Filesystem($adapter);

// Or to use the approot endpoint:
$adapter = new OneDriveAdapter($graph, 'special/approot');
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nicolas Beauvais](https://github.com/nicolasbeauvais)
- [Doan Huu Hoa](https://github.com/doanhuuhoa1603)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~278 days

Total

5

Last Release

2136d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40738196?v=4)[doanhuuhoa1603](/maintainers/doanhuuhoa1603)[@doanhuuhoa1603](https://github.com/doanhuuhoa1603)

---

Top Contributors

[![nicolasbeauvais](https://avatars.githubusercontent.com/u/2951704?v=4)](https://github.com/nicolasbeauvais "nicolasbeauvais (2 commits)")[![doanhuuhoa1603](https://avatars.githubusercontent.com/u/40738196?v=4)](https://github.com/doanhuuhoa1603 "doanhuuhoa1603 (1 commits)")

---

Tags

apiFlysystemOneDriveflysystem-onedrive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[justus/flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API

49142.4k](/packages/justus-flysystem-onedrive)[spatie/flysystem-dropbox

Flysystem Adapter for the Dropbox v2 API

3735.0M84](/packages/spatie-flysystem-dropbox)[shitware-ltd/flysystem-msgraph

A Flysystem 3.0 adapter for Sharepoint 365 / OneDrive using Microsoft Graph API with support for uploading large files

19466.1k4](/packages/shitware-ltd-flysystem-msgraph)[jacekbarecki/flysystem-onedrive

OneDrive adapter for the flysystem filesystem abstraction library

2431.0k](/packages/jacekbarecki-flysystem-onedrive)[mhetreramesh/flysystem-backblaze

Backblaze adapter for the flysystem filesystem abstraction library

63148.9k9](/packages/mhetreramesh-flysystem-backblaze)

PHPackages © 2026

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