PHPackages                             shitware-ltd/flysystem-msgraph - 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. shitware-ltd/flysystem-msgraph

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

shitware-ltd/flysystem-msgraph
==============================

A Flysystem 3.0 adapter for Sharepoint 365 / OneDrive using Microsoft Graph API with support for uploading large files

1.2.0(2y ago)19360.4k↓15%11[1 issues](https://github.com/shitware-ltd/flysystem-msgraph/issues)2MITPHPPHP ^8.0

Since Oct 19Pushed 2y ago4 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (12)Used By (2)

flysystem-msgraph
=================

[](#flysystem-msgraph)

A flysystem 3.0 adapter for Sharepoint 365 / OneDrive using Microsoft Graph API with support for uploading large files

Installation
============

[](#installation)

`composer require shitware-ltd/flysystem-msgraph`

Usage
=====

[](#usage)

Instantiate the adapter by passing in an instance of `\Microsoft\Graph\Graph` and the DriveId of the drive you want to use.

The third optional parameter allows you to override the timeout and chunk size values which are used for uploading large files (writeStream).

You must set the access token on the graph instance before using the adapter. A guide on acquiring an access token is available at

```
$graph = new \Microsoft\Graph\Graph();
$graph->setAccessToken($your_access_token);
$adapter = new \ShitwareLtd\FlysystemMsGraph\Adapter($graph, $your_drive_id);
```

FAQ
===

[](#faq)

Q: Do we really need another flysystem adapter?

A: I couldn't find one for flysystem 3.0 that implemented `writeStream` properly. This adapter allows you to upload files larger than your memory buffer.

Q: How do I find my drive ID?

A: [Out of scope for this project.](https://learn.microsoft.com/en-us/answers/questions/730575/how-to-find-site-id-and-drive-id-for-graph-api)

Q: What happens if my access token expires?

A: The adapter stops working.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~42 days

Total

11

Last Release

882d ago

Major Versions

v0.0.3 → 1.0.02022-10-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d3d42f49e006bb33c358d5dc40a1d8bfd5a1a4c95e8fcec0909ae07bb0baaf8?d=identicon)[jorqensen](/maintainers/jorqensen)

![](https://www.gravatar.com/avatar/5ac27d27ccc229d4d9164e0c2d49cbaca8fcc68aa122e73ff706071583efdb80?d=identicon)[36864](/maintainers/36864)

---

Top Contributors

[![36864](https://avatars.githubusercontent.com/u/109086466?v=4)](https://github.com/36864 "36864 (14 commits)")[![andersmateusz](https://avatars.githubusercontent.com/u/103202246?v=4)](https://github.com/andersmateusz "andersmateusz (1 commits)")

---

Tags

flysystem-adaptermsgraphonedrivesharepointFlysystemflysystem-adapterOneDrivesharepointMsGraphflysystem-msgraph

### Embed Badge

![Health badge](/badges/shitware-ltd-flysystem-msgraph/health.svg)

```
[![Health](https://phpackages.com/badges/shitware-ltd-flysystem-msgraph/health.svg)](https://phpackages.com/packages/shitware-ltd-flysystem-msgraph)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[masbug/flysystem-google-drive-ext

Flysystem adapter for Google Drive with seamless virtual&lt;=&gt;display path translation

2631.7M14](/packages/masbug-flysystem-google-drive-ext)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[justus/flysystem-onedrive

A flysystem driver for OneDrive that uses the Microsoft Graph API

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

OneDrive adapter for the flysystem filesystem abstraction library

2429.9k](/packages/jacekbarecki-flysystem-onedrive)[gwsn/flysystem-sharepoint-adapter

\[beta\] Adapter for flysystem to use sharepoint as filestore

1765.8k](/packages/gwsn-flysystem-sharepoint-adapter)

PHPackages © 2026

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