shitware-ltd/flysystem-msgraph 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shitware-ltd/flysystem-msgraph

Composer 安装命令:

composer require shitware-ltd/flysystem-msgraph

包简介

A Flysystem 3.0 adapter for Sharepoint 365 / OneDrive using Microsoft Graph API with support for uploading large files

README 文档

README

A flysystem 3.0 adapter for Sharepoint 365 / OneDrive using Microsoft Graph API with support for uploading large files

Installation

composer require shitware-ltd/flysystem-msgraph

Usage

Instantiate the adapter by passing in an instance of \Microsoft\Graph\Graph and the DriveId of the drive you want to use.

The third optional parameter allows you to override the timeout and chunk size values which are used for uploading large files (writeStream).

You must set the access token on the graph instance before using the adapter. A guide on acquiring an access token is available at https://github.com/microsoftgraph/msgraph-sdk-php#readme

$graph = new \Microsoft\Graph\Graph();
$graph->setAccessToken($your_access_token);
$adapter = new \ShitwareLtd\FlysystemMsGraph\Adapter($graph, $your_drive_id);

FAQ

Q: Do we really need another flysystem adapter?

A: I couldn't find one for flysystem 3.0 that implemented writeStream properly. This adapter allows you to upload files larger than your memory buffer.

Q: How do I find my drive ID?

A: Out of scope for this project.

Q: What happens if my access token expires?

A: The adapter stops working.

统计信息

  • 总下载量: 454.67k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 12
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 4
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固