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