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

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

as247/flysystem-onedrive
========================

One Drive Adapter for Flysystem

v3.0.3(1y ago)950.2k↓36.4%3MITPHPPHP &gt;=7.1

Since Oct 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (17)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 as247/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 \As247\CloudStorages\Support\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 \As247\Flysystem\OneDrive\OneDriveAdapter($graph, '[root path]');

$filesystem = new \League\Flysystem\Filesystem($adapter);
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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 ~136 days

Recently: every ~29 days

Total

16

Last Release

718d ago

Major Versions

v1.0.5 → v2.0.02024-01-31

v1.0.6 → v3.0.02024-02-03

v1.1 → 3.x-dev2024-05-30

PHP version history (2 changes)v1.0PHP &gt;=5.6

v1.0.1PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phpstoragemicrosoftdriveone drive

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

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

PHPackages © 2026

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