PHPackages                             delaneymethod/flysystem-sharepoint - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. delaneymethod/flysystem-sharepoint

ActiveLibrary[HTTP &amp; Networking](/categories/http)

delaneymethod/flysystem-sharepoint
==================================

Flysystem Adapter for the Sharepoint 2013 REST API

2.0.3(8y ago)713.7k7[1 issues](https://github.com/delaneymethod/flysystem-sharepoint/issues)MITPHPPHP ^7.0

Since Apr 3Pushed 4y agoCompare

[ Source](https://github.com/delaneymethod/flysystem-sharepoint)[ Packagist](https://packagist.org/packages/delaneymethod/flysystem-sharepoint)[ Docs](https://github.com/delaneymethod/flysystem-sharepoint)[ RSS](/packages/delaneymethod-flysystem-sharepoint/feed)WikiDiscussions master Synced 4d ago

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

Flysystem adapter for the Sharepoint API
========================================

[](#flysystem-adapter-for-the-sharepoint-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/02e7db1499ebb749175b26076ac17bef841955b1c410eddd4aa6dd73d8525046/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656c616e65796d6574686f642f666c7973797374656d2d7368617265706f696e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/delaneymethod/flysystem-sharepoint)[![Total Downloads](https://camo.githubusercontent.com/b7bfc9375c30ce2b503abf9e95e14cda17e8bfd850a118eb19a00518ac03bd0f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656c616e65796d6574686f642f666c7973797374656d2d7368617265706f696e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/delaneymethod/flysystem-sharepoint)

This package contains a [Flysystem](https://flysystem.thephpleague.com/) adapter for Sharepoint 2013 REST API. Under the hood, the [Sharepoint 2013 REST API](https://www.dropbox.com/developers/documentation/http/overview) is used.

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

[](#installation)

You can install the package via composer:

```
composer require delaneymethod/flysystem-sharepoint
```

Usage
-----

[](#usage)

The first thing you need to do is get an authorisation token from Sharepoint. Sharepoint has made this very easy. You can register a new App within your Sharepoint Site that can be used to generate a client ID and Secret. You'll find more info at [Authorizing REST API calls against SharePoint Site](http://spshell.blogspot.co.uk/2015/03/sharepoint-online-o365-oauth.html).

You can read the whole article for additional knowledge but the first step is the only step you're interested in for our flysystem-sharepoint adapter to work.

With an authorisation token you can instantiate a `DelaneyMethod\Sharepoint\Client`.

```
use League\Flysystem\Filesystem;
use DelaneyMethod\Sharepoint\Client as SharepointClient;
use DelaneyMethod\FlysystemSharepoint\SharepointAdapter;

$siteName = 'YOUR_TEAM_SITE_NAME';
$siteUrl = 'https://YOUR_SITE.sharepoint.com';
$publicUrl = 'https://YOUR_SITE.sharepoint.com/:i:/r/sites/YOUR_TEAM_SITE_NAME/Shared%20Documents'
$clientId = 'YOUR_CLIENT_ID';
$clientSecret = 'YOUR_CLIENT_SECRET';
$verify = false; // See http://docs.guzzlephp.org/en/stable/request-options.html#verify
$accessToken = 'YOUR_ACCESS_TOKEN';

$client = new SharepointClient($siteName, $siteUrl, $publicUrl, $clientId, $clientSecret, $verify, $accessToken);

$adapter = new SharepointAdapter($client);

$filesystem = new Filesystem($adapter, ['url' => $publicUrl]);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.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 ~6 days

Total

6

Last Release

2930d ago

Major Versions

1.0.1 → 2.0.02018-04-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/cfb4e92a4d0600764dcbc0058a37dc46627428e876e3bf806e398a5f1ad1f283?d=identicon)[hello@delaneymethod.com](/maintainers/hello@delaneymethod.com)

---

Top Contributors

[![seandelaney](https://avatars.githubusercontent.com/u/580403?v=4)](https://github.com/seandelaney "seandelaney (5 commits)")[![GuusLeeuw-IGN](https://avatars.githubusercontent.com/u/60770713?v=4)](https://github.com/GuusLeeuw-IGN "GuusLeeuw-IGN (1 commits)")

---

Tags

phpapiFlysystemrestsharepointdelaneymethodflysystem-sharepoint

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/delaneymethod-flysystem-sharepoint/health.svg)

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

###  Alternatives

[wearearchitect/sharepoint-oauth-app-client

SharePoint OAuth App Client

156.1k](/packages/wearearchitect-sharepoint-oauth-app-client)[mediamonks/rest-api-bundle

MediaMonks Rest API Symfony Bundle

1656.2k1](/packages/mediamonks-rest-api-bundle)

PHPackages © 2026

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