PHPackages                             imbo/imbo-b2-adapters - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. imbo/imbo-b2-adapters

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

imbo/imbo-b2-adapters
=====================

B2 adapters for Imbo

0311PHPCI passing

Since Jan 28Pushed 3mo agoCompare

[ Source](https://github.com/imbo/imbo-b2-adapters)[ Packagist](https://packagist.org/packages/imbo/imbo-b2-adapters)[ RSS](/packages/imbo-imbo-b2-adapters/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

B2 storage adapter for Imbo
===========================

[](#b2-storage-adapter-for-imbo)

[B2](https://www.backblaze.com/) storage adapter for Imbo.

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

[](#installation)

```
composer require imbo/imbo-b2-adapters

```

Usage
-----

[](#usage)

Create the adapter using a key ID, an application key, a bucket ID, and a bucket name. You can get access to this information in your B2 account.

```
use Imbo\Storage\B2;

$adapter = new B2($keyId, $applicationKey, $bucketId, $bucketName);
```

Running integration tests
-------------------------

[](#running-integration-tests)

If you want to run the integration tests for this adapter you need to export the following environment variables:

- `B2_KEY_ID`
- `B2_APPLICATION_KEY`
- `B2_BUCKET_ID`
- `B2_BUCKET_NAME`

You will also need to copy `phpunit.dist.xml` to `phpunit.xml` and comment out or remove the part in the configuration that excludes the integration test group.

**Warning:** The integration tests will empty the specified bucket, so if you intend to run the integration tests you should create a dedicated bucket for this purpose.

License
-------

[](#license)

MIT, see [LICENSE](LICENSE).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance54

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.1% 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/7414511ed44259dd5f64ebb112f6e45b3434a341cd5e7b4135aa6db718c78972?d=identicon)[cogocogo](/maintainers/cogocogo)

---

Top Contributors

[![christeredvartsen](https://avatars.githubusercontent.com/u/25402?v=4)](https://github.com/christeredvartsen "christeredvartsen (49 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/imbo-imbo-b2-adapters/health.svg)

```
[![Health](https://phpackages.com/badges/imbo-imbo-b2-adapters/health.svg)](https://phpackages.com/packages/imbo-imbo-b2-adapters)
```

###  Alternatives

[humanmade/hm-rewrite

HM\_Rewrite is a wrapper for the WordPress WP Rewrite system. http://hmn.md/wordpress-rewrite-rules-hm-core-style/

16115.9k](/packages/humanmade-hm-rewrite)

PHPackages © 2026

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