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)19466.1k↓47.6%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 3d 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 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community22

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

929d ago

Major Versions

v0.0.3 → 1.0.02022-10-25

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5462716?v=4)[Mathias Jørgensen](/maintainers/jorqensen)[@jorqensen](https://github.com/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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[masbug/flysystem-google-drive-ext

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

2682.2M18](/packages/masbug-flysystem-google-drive-ext)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M576](/packages/shopware-core)

PHPackages © 2026

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