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

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

nicolasbeauvais/flysystem-onedrive
==================================

Flysystem Adapter for the OneDrive API

v1.0.2(8y ago)1914.8k↓62.5%12MITPHPPHP ^7.0

Since Aug 12Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

This package is not maintained anymore.
---------------------------------------

[](#this-package-is-not-maintained-anymore)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/5cbe92227b72ba2cfce006efa03f2bfb5bd02f547e1e06dcc65cdd8de027e2b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e69636f6c617362656175766169732f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nicolasbeauvais/flysystem-onedrive)[![Build Status](https://camo.githubusercontent.com/e38b3a109cab2207c9c610edab8b3d8f89d53ef8b9248179b90a6ebb1255fb9c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e69636f6c617362656175766169732f666c7973797374656d2d6f6e6564726976652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/nicolasbeauvais/flysystem-onedrive)[![StyleCI](https://camo.githubusercontent.com/60c7b0c62da2e8cdf2e43a27277c58e58bcf442a4eb731fff558bf0e3f9a6486/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130303032383536352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/100028565)[![Quality Score](https://camo.githubusercontent.com/32973e0af610259e6b740c2b809a275a889be5746ee6ed265449eda432b4551a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e69636f6c617362656175766169732f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nicolasbeauvais/flysystem-onedrive)[![Total Downloads](https://camo.githubusercontent.com/8f15a8888f852d2051f2e6048d1478829350f10cd5838dcebeb8007434a5fbda/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69636f6c617362656175766169732f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nicolasbeauvais/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 nicolasbeauvais/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 NicolasBeauvais\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)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

3247d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b6066ead65db8768cca2c6c5d2312e5f9af8e564ceb2971bb33e30d58bd280e?d=identicon)[nicolasbeauvais](/maintainers/nicolasbeauvais)

---

Top Contributors

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

---

Tags

apiFlysystemOneDriveflysystem-onedrive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/nicolasbeauvais-flysystem-onedrive/health.svg)](https://phpackages.com/packages/nicolasbeauvais-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.0M83](/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.9k8](/packages/mhetreramesh-flysystem-backblaze)

PHPackages © 2026

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