A Flysystem adaptor for Backblaze B2.
composer require zaxbux/flysystem-backblaze-b2
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);
Before running tests, ensure the B2_APPLICATION_KEY_ID
, B2_APPLICATION_KEY
, and B2_BUCKET_ID
environment variables are set.
$ ./vendor/bin/phpunit
Feel free to contribute in any way report an issue, make a suggestion, or send a pull request.