PHP code example of zaxbux / flysystem-backblaze-b2
1. Go to this page and download the library: Download zaxbux/flysystem-backblaze-b2 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/ */
zaxbux / flysystem-backblaze-b2 example snippets
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);