skinka / flysystem-msgraph-files
Flysystem adapter for OneDrive or SharePoint
Installs: 3 594
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^7.0
- guzzlehttp/guzzle: ^6.2
- league/flysystem: ^1.0
- microsoft/microsoft-graph: ^1.13
Requires (Dev)
- phpunit/phpunit: ^9.1
This package is auto-updated.
Last update: 2024-12-10 07:46:06 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 skinka/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 Skinka\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.