like-it/flysystem-msgraph-files

Flysystem adapter for OneDrive or SharePoint

Maintainers

Package info

github.com/like-it/flysystem-msgraph-file

Homepage

pkg:composer/like-it/flysystem-msgraph-files

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 1

1.04 2022-11-09 15:05 UTC

This package is auto-updated.

Last update: 2026-03-09 22:22:51 UTC


README

This package contains a Flysystem adapter for OneDrive, SharePoint. Under the hood, MS Graph API is used.

Installation

You can install the package via composer:

composer require like-it/flysystem-msgraph-files

Usage

The first thing you need to do is create an application at Azure and get client_id, client_secret, tenant_id.

use League\Flysystem\Filesystem;
use LikeIt\FlysystemMSGraph\MSGraphAdapter;

$filesystem = new Filesystem(new MSGraphAdapter($clientId, $clientSecret, $tenantId, $prefix));

Note: $prefix is file resource string.

License

The MIT License (MIT). Please see License File for more information.