skinka / flysystem-msgraph-files
Flysystem适配器,用于OneDrive或SharePoint
1.0.2
2020-06-09 21:22 UTC
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-09-10 07:12:01 UTC
README
此包包含OneDrive和SharePoint的Flysystem适配器。底层使用MS Graph API。
安装
您可以通过composer安装此包
composer require skinka/flysystem-msgraph-files
用法
首先,您需要在Azure上创建一个应用程序,并获取client_id、client_secret和tenant_id。
use League\Flysystem\Filesystem; use Skinka\FlysystemMSGraph\MSGraphAdapter; $filesystem = new Filesystem(new MSGraphAdapter($clientId, $clientSecret, $tenantId, $prefix));
注意:$prefix是文件资源字符串。
许可
MIT许可(MIT)。有关更多信息,请参阅许可文件。