samicrusader/flysystem-backblaze
Composer 安装命令:
composer require samicrusader/flysystem-backblaze
包简介
Connects Backblaze B2 object storage to Flysystem
README 文档
README
Connects Backblaze B2 object storage to Flysystem v1.0; forked from gliterd/mhetreramesh for use with XenForo because Backblaze's S3 implementation is AIDS.
This fork/rewrite uses obregonco/backblaze-b2 since it supports B2 API version 2 and also was updated in the last year.
$ composer require samicrusader/flysystem-backblaze
XF install instructions coming soon
Usage
You will need:
$accountId-> Master Application KeykeyID$keyId->keyID(if you are using the master application key which you shouldn't be, you can omit this)$applicationKey=>applicationKey
You can find these on the https://secure.backblaze.com/app_keys.htm page.
use Samicrusader\Flysystem\BackblazeClient; use Samicrusader\Flysystem\BackblazeAdapter; use League\Flysystem\Filesystem; $client = new BackblazeClient( accountId: 'xxxxxxxxxxxx', authorizationValues: [ 'keyId' => 'xxxxxxxxxxxxxxxxxxxxxxxxx', /* optional if using master account key */ 'applicationKey' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', ] ); $client->version = 2; // client defaults to v1 for some reason $adapter = new BackblazeAdapter($client, $bucketName); $filesystem = new Filesystem($adapter);
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-08