zaxbux / flysystem-backblaze-b2
A Flysystem adaptor for Backblaze B2
v3.0.0
2022-10-19 22:22 UTC
Requires
- php: >=8.0
- league/flysystem: ^3.0
- zaxbux/backblaze-b2-php: ^2.0.2
Requires (Dev)
README
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.