This package contains a Flysystem adapter for OneDrive, SharePoint. Under the hood, MS Graph API is used.
You can install the package via composer:
composer require skinka/flysystem-msgraph-files
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 Skinka\FlysystemMSGraph\MSGraphAdapter;
$filesystem = new Filesystem(new MSGraphAdapter($clientId, $clientSecret, $tenantId, $prefix));
Note: $prefix
is file resource string.
The MIT License (MIT). Please see License File for more information.