承接 slacker775/backblaze-b2-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

slacker775/backblaze-b2-api

Composer 安装命令:

composer require slacker775/backblaze-b2-api

包简介

PHP Library for Backblaze B2 API

README 文档

README

This library is designed to allow you to plug in your own PSR18 compliant HTTP client in order to utilize the Backblaze B2 API. As originally created, this was created to provide the backbone for a flysystem adapter, thus not all API calls are yet completed.

Usage

<?php
use Backblaze\B2\ApiClient;

$client = new ApiClient($accountId, $apiKey);

foreach($client->listFilenames() as $item) {
    printf("File: %s\n", $item->getFileName());
}

Client Constructor

$client = new ApiClient(private string $applicationKeyId,
    private string $applicationKey, ClientInterface $httpClient = null,
    RequestFactoryInterface $requestFactory = null,
    StreamFactoryInterface $streamFactory = null
)

The only required values are an application key id (or master ID) and an application key. You can pass in your own PSR18 HTTP Client as well as your own request and stream factories. This allows you to add plugins such as connection logging, etc in your process without bogging down this library with all kinds of additional baggage. This also prevents this library from being tied to a specific client implementation that then creates conflicts with your own project that might use a different version leading to dependancy nightmares.

If you use the symfony/http-client as your implementation, you can pass the same object as the $httpClient, $requestFactory and $streamFactory.

统计信息

  • 总下载量: 114
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固