This package contains a Flysystem adapter for Sharepoint. Under the hood, the Microsoft Graph API v1 is used. You need an Azure App to use this package.
You can install the package via composer:
composer require homedesignshops/flysystem-sharepoint
The first thing you need to do is creating a new Azure Application. Make sure you set the Microsoft Graph API Permissions inside your created application:
- Files.ReadWrite.All
- Group.ReadWrite.All
After that, you can use the adapter as follows:
use Homedesignshops\FlysystemSharepoint\SharepointClient;
use Homedesignshops\FlysystemSharepoint\SharepointAdapter;
use League\Flysystem\Filesystem;
$client = new SharepointClient($tenantId, $clientId, $clientSecret, $sharepointGroupName)
$adapter = new SharepointAdapter($client, $pathPrefix);
$filesystem = new Filesystem($adapter);
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.