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

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

tomsim/flysystem-onedrive
=========================

Flysystem Adapter for the OneDrive API

v1.1.2(3y ago)12.2k↑100%1MITPHPPHP ^8.0

Since Aug 20Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

This package is based on the repo no more maintained by nicolasbeauvais.
------------------------------------------------------------------------

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

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/ed2d84078b0560bf8d0f46db7f2e50ccd0b5db87e8b410624e113097b4a8fd97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f6d73696d2f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tomsim/flysystem-onedrive)[![Total Downloads](https://camo.githubusercontent.com/75c56861120ec6597e1a90b9922c5ce486204fe0f0efb4c2389dcf4f63f2c9ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f6d73696d2f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tomsim/flysystem-onedrive)[![Contributor Covenant](https://camo.githubusercontent.com/4ae39ae593b602cf0ae07972b61c73728b77ec8e2cf40f579a2441948208036b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6e7472696275746f72253230436f76656e616e742d322e312d3462616161612e737667)](CODE_OF_CONDUCT.md)

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 tomsim/flysystem-onedrive
```

or add direct this repo in composer.json

```
"repositories": [
        {
            "url": "https://github.com/tomsim/flysystem-onedrive.git",
            "type": "git"
        }
    ],
```

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 Azure Portal](https://portal.azure.com/).

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

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

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

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)

- [Tomas Šimkevičius](https://github.com/tomsim)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~1 days

Total

4

Last Release

1361d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d64bf79462537d36520fc94c774f6ea1de76e3c5786ffaa022e42d973ad1987?d=identicon)[tomas.simkevicius](/maintainers/tomas.simkevicius)

---

Top Contributors

[![tomsim](https://avatars.githubusercontent.com/u/16625255?v=4)](https://github.com/tomsim "tomsim (8 commits)")[![megasent1](https://avatars.githubusercontent.com/u/15844816?v=4)](https://github.com/megasent1 "megasent1 (1 commits)")

---

Tags

apiFlysystemOneDriveflysystem-onedrive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[justus/flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API

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

Flysystem Adapter for the Dropbox v2 API

3644.6M68](/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

19360.4k3](/packages/shitware-ltd-flysystem-msgraph)[jacekbarecki/flysystem-onedrive

OneDrive adapter for the flysystem filesystem abstraction library

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

Backblaze adapter for the flysystem filesystem abstraction library

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

PHPackages © 2026

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