PHP code example of marcandreappel / flysystem-backblaze

1. Go to this page and download the library: Download marcandreappel/flysystem-backblaze 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/ */

    

marcandreappel / flysystem-backblaze example snippets


use MarcAndreAppel\FlysystemBackblaze\BackblazeAdapter;
use League\Flysystem\Filesystem;
use BackblazeB2\Client;

$client  = new Client($accountId, $applicationKey);
$adapter = new BackblazeAdapter($client, $bucketName);

$filesystem = new Filesystem($adapter);

$client  = new Client($accountId, $applicationKey);
$adapter = new BackblazeAdapter($client, $bucketName, $bucketId);