2017 © Pedro Peláez
 

library b2-php

image

partner-it/b2-php

  • Thursday, December 14, 2017
  • by darxmac
  • Repository
  • 3 Watchers
  • 3 Stars
  • 1,271 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Codeship Status for partner-it/b2-php Scrutinizer Code Quality Code Coverage, (*1)

Backblaze B2 PHP wrapper

Installation

composer require partner-it/b2-php

Setup

Instantiate a new client and get a token:, (*2)


$client = new \B2\B2Client('accountid', 'applicationKey'); $client->requestToken();

Upload a file


$client->Files->uploadFile('bucketId', '/my/local/path/image.jpg', 'image.jpg', 'image/jpeg');

Dowload a file

Download a file by name:, (*3)


$data = $b2Client->Files->downloadFileByName('bucketname', 'image.jpg');

The Versions

14/12 2017

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires