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

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

hevelius/flysystem-onedrive
===========================

Flysystem Adapter for the OneDrive API

v1.0.6(6y ago)2635↓100%5MITPHPPHP ^7.0

Since Aug 12Pushed 2y agoCompare

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

READMEChangelog (4)Dependencies (3)Versions (8)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/56a800e0218efe503e48fa2b6e832a3a8cd2e9b939d4be2223544134e4bf951f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686576656c6975732f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hevelius/flysystem-onedrive)[![Build Status](https://camo.githubusercontent.com/8ff40fd5fad94ec0ef638a9d8ace71cfe1e88ca96bbafbcdb7afb8fd3f97bf51/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f686576656c6975732f666c7973797374656d2d6f6e6564726976652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/hevelius/flysystem-onedrive)[![Total Downloads](https://camo.githubusercontent.com/b513ba3c3b49f868c415c057113cda44b55bb452a717980e1d1b5f4f2abdb3a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f686576656c6975732f666c7973797374656d2d6f6e6564726976652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hevelius/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 hevelius/flysystem-onedrive
```

or add direct this repo in composer.json

```
"repositories": [
        {
            "url": "https://github.com/hevelius/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 MarioPerrotta\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)
- [Mario Perrotta](https://github.com/hevelius)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 81.8% 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 ~133 days

Recently: every ~200 days

Total

7

Last Release

2389d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0822d04ad9507cc51fe7b550a319f4bd545f5a8b2365e168002ce16a8a53f2df?d=identicon)[hevelius](/maintainers/hevelius)

---

Top Contributors

[![hevelius](https://avatars.githubusercontent.com/u/49342144?v=4)](https://github.com/hevelius "hevelius (9 commits)")[![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/hevelius-flysystem-onedrive/health.svg)

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M785](/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)
