Skip to content

partner-it/b2-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codeship Status for partner-it/b2-php Scrutinizer Code Quality Code Coverage

Backblaze B2 PHP wrapper

Installation

composer require partner-it/b2-php

Setup

Instantiate a new client and get a token:

$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:

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

About

A PHP Wrapper for Backblaze B2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages