PHPackages                             partner-it/b2-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. partner-it/b2-php

ActiveLibrary

partner-it/b2-php
=================

35.6k↓44.4%PHP

Since Dec 14Pushed 8y ago3 watchersCompare

[ Source](https://github.com/partner-it/b2-php)[ Packagist](https://packagist.org/packages/partner-it/b2-php)[ RSS](/packages/partner-it-b2-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[ ![Codeship Status for partner-it/b2-php](https://camo.githubusercontent.com/19880a6dbf0d217f3c53b854bfbbbed4f694c39c765d4b6b60a5591050ed6f0f/68747470733a2f2f636f6465736869702e636f6d2f70726f6a656374732f34373334373330302d373035662d303133332d646665352d3032303461373233636165372f7374617475733f6272616e63683d6d6173746572)](https://codeship.com/projects/116533) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/c36aba538d24f80344173e82da99fbc2e50b5fde732254428c5373ac1c0714cb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706172746e65722d69742f62322d7068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/partner-it/b2-php/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/2a4726da026cc2d9a1d4698a1e49c5313e0e682575c8bc8211a486d4dc23a7ff/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706172746e65722d69742f62322d7068702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/partner-it/b2-php/?branch=master)

Backblaze B2 PHP wrapper
========================

[](#backblaze-b2-php-wrapper)

Installation
------------

[](#installation)

```
composer require partner-it/b2-php

```

Setup
-----

[](#setup)

Instantiate a new client and get a token:

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

### Upload a file

[](#upload-a-file)

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

### Dowload a file

[](#dowload-a-file)

Download a file by name:

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/005a47bdf416816e66db680290120b16505d82db51f7ad4d648a2801de352456?d=identicon)[darxmac](/maintainers/darxmac)

---

Top Contributors

[![darxmac](https://avatars.githubusercontent.com/u/139267?v=4)](https://github.com/darxmac "darxmac (7 commits)")

### Embed Badge

![Health badge](/badges/partner-it-b2-php/health.svg)

```
[![Health](https://phpackages.com/badges/partner-it-b2-php/health.svg)](https://phpackages.com/packages/partner-it-b2-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
