arajcany / backblaze-b2-client
Backblaze B2 Client to work with the native API.
Installs: 43
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- zaxbux/backblaze-b2-php: ^2.0
Requires (Dev)
README
Extension of zaxbux/backblaze-b2-php
Backblaze B2 Client Library
https://github.com/zaxbux/backblaze-b2-php.
I extended his library because I needed the ability to configure the Guzzle Client. In addition, the B2 Client will
automatically use AuthorizationCache I wrote. As such, this Library matches the zaxbux/backblaze-b2-php
version
tagging.
Check the examples
folder for a simple use case with league/flysystem
and zaxbux/flysystem-backblaze-b2
adapter.
composer require arajcany/backblaze-b2-client
//BackblazeB2 Client options $config = [ 'applicationKeyId' => $keyId, 'applicationKey' => $key, //'authorizationCache' => false, //uncomment to stop using the AuthorizationCache, but why would you? ]; //Guzzle Client options $guzzleConfig = [ 'verify' => CONFIG . "cacert.pem" ]; $client = new Client($config, $guzzleConfig); $adapter = new BackblazeB2Adapter($client, $bucketId); $filesystem = new Filesystem($adapter);