Download the PHP package zaxbux/backblaze-b2-php without Composer
On this page you can find all versions of the php package zaxbux/backblaze-b2-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zaxbux/backblaze-b2-php
More information about zaxbux/backblaze-b2-php
Files in zaxbux/backblaze-b2-php
Package backblaze-b2-php
Short Description A SDK for working with B2 cloud storage.
License MIT
Homepage https://github.com/zaxbux/backblaze-b2-php
Informations about the package backblaze-b2-php
Backblaze B2 SDK for PHP
backblaze-b2-php
is a client library for working with the B2 cloud storage service from Backblaze.
Documentation
Full documentation of the Backblaze B2 API can be found here.
Complete documentation for this library does not exist yet, however most methods are already documented in the source code.
Installation
Installation is via Composer:
Getting Started
Authorization Cache
If you want to cache the authorization token to reduce the number of API calls, create a class that implements Zaxbux\BackblazeB2\Interfaces\AuthorizationCacheInterface
.
Sample Authorization Cache
The AuthorizationCacheInterface::EXPIRES
constant is how long the authorization token is valid for, in seconds. Currently, this is equivalent to 24 hours. Requests made after the token expires will result in an ExpiredAuthTokenException
exception being thrown. You will need to get a new authorization token with authorizeAccount()
.
Tests
Tests are run with PHPUnit. After installing PHPUnit via Composer:
Contributing
Feel free to contribute in any way by reporting an issue, making a suggestion, or submitting a pull request.
Licence
MIT