Skip to content

Flysystem Adapter for OneDrive and SharePoint using Microsoft Graph API

License

Notifications You must be signed in to change notification settings

dimasahmad/flysystem-onedrive-sharepoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flysystem-onedrive-sharepoint

Flysystem Adapter for OneDrive and SharePoint using Microsoft Graph API.

Installation

You can install the package via composer:

composer require dimasahmad/flysystem-onedrive-sharepoint

Usage

The first thing you need to do is get an authorization token for the Microsoft Graph API. For that you need to create an app on the Microsoft App Registration Portal.

use Microsoft\Graph\Graph;
use League\Flysystem\Filesystem;
use NicolasBeauvais\FlysystemOneDrive\OneDriveAdapter;

$graph = new Graph();
$graph->setAccessToken('EwBIA8l6BAAU7p9QDpi...');

$adapter = new OneDriveSharePointAdapter($graph, 'root');
$filesystem = new Filesystem($adapter);

// Or to use the approot endpoint:
$adapter = new OneDriveAdapter($graph, 'special/approot');

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

About

Flysystem Adapter for OneDrive and SharePoint using Microsoft Graph API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published