定制 samicrusader/flysystem-backblaze 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

samicrusader/flysystem-backblaze

Composer 安装命令:

composer require samicrusader/flysystem-backblaze

包简介

Connects Backblaze B2 object storage to Flysystem

README 文档

README

Software License

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 Key keyID
  • $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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-08