zaxbux/flysystem-backblaze-b2

A Flysystem adaptor for Backblaze B2

v3.0.0 2022-10-19 22:22 UTC

This package is auto-updated.

Last update: 2024-11-20 02:53:27 UTC


README

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

use League\Flysystem\Filesystem;
use Zaxbux\BackblazeB2\Client;
use Zaxbux\Flysystem\BackblazeB2Adapter;


$client     = new Client(['B2_APPLICATION_KEY_ID', 'B2_APPLICATION_KEY']);
$adapter    = new BackblazeB2Adapter($client, 'B2_BUCKET_ID');
$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.

$ ./vendor/bin/phpunit

Contributions

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

License

MIT