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

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

jacekbarecki/flysystem-onedrive
===============================

OneDrive adapter for the flysystem filesystem abstraction library

1.0.1(10y ago)2429.9k↓37%12[1 issues](https://github.com/jacekbarecki/flysystem-onedrive/issues)MITPHP

Since Feb 14Pushed 8y ago4 watchersCompare

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

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

Flysystem OneDrive adapter
==========================

[](#flysystem-onedrive-adapter)

[![Author](https://camo.githubusercontent.com/650e2406d24c3345e5b362bbacf7b324222503d13e9728b6ca818093a584ce58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d2534306a6163656b62617265636b692d627269676874677265656e2e737667)](https://twitter.com/JacekBarecki)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

The OneDrive adapter gives the possibility to use the [Flysystem](https://github.com/thephpleague/flysystem) filesystem abstraction library with OneDrive. It uses the Guzzle library to communicate with the API.

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

[](#installation)

```
composer require jacekbarecki/flysystem-onedrive
```

Usage
-----

[](#usage)

To communicate with the OneDrive API, you will need an authorization token. For the development purposes, visit [https://dev.onedrive.com/auth/msa\_oauth.htm](https://dev.onedrive.com/auth/msa_oauth.htm), click "Get token" and paste the token into your PHP app.
See the [OneDrive API documentation](https://dev.onedrive.com) for a detailed information about other ways of authorization.

```
require 'vendor/autoload.php';

//paste a temporary token from https://dev.onedrive.com/auth/msa_oauth.htm
$token = '123456789';

$oneDriveClient = new \JacekBarecki\FlysystemOneDrive\Client\OneDriveClient($token, new \GuzzleHttp\Client());
$oneDriveAdapter = new \JacekBarecki\FlysystemOneDrive\Adapter\OneDriveAdapter($oneDriveClient);
```

Known limitations
-----------------

[](#known-limitations)

The OneDrive adapter has currently some limitations. If you want to contribute to the development of the adapter, feel free to submit pull requests that remove these limitations:

1. Saving files is currently supported by the ["Simple upload"](https://dev.onedrive.com/items/upload_put.htm) method of the OneDrive API. This method only supports files up to 100MB in size and is implemented without stream support. To support larger files, a [resumable upload method](https://dev.onedrive.com/items/upload_large_files.htm) needs to be implemented.
2. When listing items and a collection has more than 200 items, only first 200 items will be returned. To support bigger collections, the client should make multiple API calls, as described in the [OneDrive API documentation](https://dev.onedrive.com/items/list.htm). This is not implemented yet.

See also
--------

[](#see-also)

Please note that the OneDrive API is [case insensitive](https://dev.onedrive.com/misc/case-sensitivity.htm). Read the OneDrive API documentation to get to know the details.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3738d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cbb3e50c1af278b4437ce7bf76b13cc0a94a9f74eaa60285d465bf427912e5e?d=identicon)[jacekbarecki](/maintainers/jacekbarecki)

---

Top Contributors

[![jacekbarecki](https://avatars.githubusercontent.com/u/3525239?v=4)](https://github.com/jacekbarecki "jacekbarecki (3 commits)")

---

Tags

apiclientfilesystemFlysystemOneDrive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

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

Backblaze adapter for the flysystem filesystem abstraction library

62146.8k9](/packages/mhetreramesh-flysystem-backblaze)[justus/flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API

48104.4k](/packages/justus-flysystem-onedrive)[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)[gliterd/laravel-backblaze-b2

Backblaze B2 Cloud Storage for Laravel 5

5341.6k](/packages/gliterd-laravel-backblaze-b2)[royvoetman/flysystem-gitlab-storage

Flysystem Adapter for the Gitlab Repository files API v4

1123.3k4](/packages/royvoetman-flysystem-gitlab-storage)

PHPackages © 2026

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