PHP code example of arajcany / backblaze-b2-client
1. Go to this page and download the library: Download arajcany/backblaze-b2-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
arajcany / backblaze-b2-client example snippets
//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);
zaxbux/backblaze-b2-php
zaxbux/backblaze-b2-php