Skip to content

zaxbux/flysystem-backblaze-b2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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