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

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

yosa/flysystem-onedrive
=======================

Fork OneDrive adapter for the flysystem filesystem abstraction library

1.0.3(8y ago)0425MITPHP

Since Feb 14Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~177 days

Total

5

Last Release

3032d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7290226?v=4)[Luis Heredia](/maintainers/lheredia)[@lheredia](https://github.com/lheredia)

---

Top Contributors

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

---

Tags

apiclientfilesystemFlysystemOneDrive

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[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)[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)

PHPackages © 2026

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