项目作者: zaxbux

项目描述 :
A Flysystem adapter for Backblaze B2.
高级语言: PHP
项目地址: git://github.com/zaxbux/flysystem-backblaze-b2.git
创建时间: 2019-03-25T00:00:07Z
项目社区:https://github.com/zaxbux/flysystem-backblaze-b2

开源协议:MIT License

下载


Zaxbux\Flysystem\BackblazeB2

GitHub release (latest SemVer) Packagist PHP Version Support Packagist Version GitHub licence GitHub issues

A Flysystem adaptor for Backblaze B2.

Installation

composer require zaxbux/flysystem-backblaze-b2

Basic Usage

  1. use League\Flysystem\Filesystem;
  2. use Zaxbux\BackblazeB2\Client;
  3. use Zaxbux\Flysystem\BackblazeB2Adapter;
  4. $client = new Client(['B2_APPLICATION_KEY_ID', 'B2_APPLICATION_KEY']);
  5. $adapter = new BackblazeB2Adapter($client, 'B2_BUCKET_ID');
  6. $filesystem = new Filesystem($adapter);

Tests

Before running tests, ensure the B2_APPLICATION_KEY_ID, B2_APPLICATION_KEY, and B2_BUCKET_ID environment variables are set.

  1. $ ./vendor/bin/phpunit

Contributions

Feel free to contribute in any way report an issue, make a suggestion, or send a pull request.

License

MIT