PHPackages                             runcloudio/flysystem-b2 - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. runcloudio/flysystem-b2

ActiveLibrary[File &amp; Storage](/categories/file-storage)

runcloudio/flysystem-b2
=======================

Backblaze adapter for the flysystem filesystem abstraction library. A fork from https://github.com/mhetreramesh/flysystem-backblaze and maintained as separate package.

1.1.3(7y ago)02.7kMITPHPPHP &gt;=5.5.0

Since Aug 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/RunCloudIO/flysystem-b2)[ Packagist](https://packagist.org/packages/runcloudio/flysystem-b2)[ Docs](https://github.com/RunCloudIO/flysystem-b2)[ RSS](/packages/runcloudio-flysystem-b2/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (6)Versions (16)Used By (0)

flysystem-b2
============

[](#flysystem-b2)

This is a fork based on . It includes download file stream. Since B2 SDK from original package no longer maintained (Last PR merge is November 2016), I'm including the B2 SDK that I've forked and modified. This package also include ServiceProvider for Laravel.

Visit ([https://secure.backblaze.com/b2\_buckets.htm](https://secure.backblaze.com/b2_buckets.htm)) and get your account id, application key.

The Backblaze adapter gives the possibility to use the Flysystem filesystem abstraction library with backblaze. It uses the [Backblaze B2 SDK](https://github.com/RunCloudIO/b2-sdk-php) to communicate with the API.

Install
-------

[](#install)

Via Composer

```
$ composer require runcloudio/flysystem-b2
```

Usage with Laravel
------------------

[](#usage-with-laravel)

If you are using **Laravel 5.4 and below**, add this line to app.php inside list of Service Providers.:

```
\RunCloudIO\FlysystemB2\BackblazeServiceProvider::class,

```

Starting from Laravel 5.5, they implements **Package Auto Discovery**, so you don't have to add the service provider.

Doesn't matter which Laravel version you are using, add the following to your filesystems.php config file in the `disks` section:

```
'b2' => [
    'driver'         => 'b2',
    'accountId'      => '',
    'applicationKey' => '',
    'bucketName'     => '',
],

```

Just use it as you normally would use the Storage facade.

```
\Storage::disk('b2')->put('test.txt', 'test')

```

and

```
\Storage::disk('b2')->get('test.txt')

```

Usage without Laravel
---------------------

[](#usage-without-laravel)

```
use RunCloudIO\FlysystemB2\BackblazeAdapter;
use League\Flysystem\Filesystem;
use ChrisWhite\B2\Client;

$client = new Client($accountId, $applicationKey);
$adapter = new BackblazeAdapter($client,$bucketName);

$filesystem = new Filesystem($adapter);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [RunCloudIO](https://github.com/RunCloudIO)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 57.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.

###  Release Activity

Cadence

Every ~63 days

Recently: every ~106 days

Total

13

Last Release

2834d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.0.4PHP &gt;=5.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14998386?v=4)[Ahmad Fikrizaman Bin Abd Rahim](/maintainers/coolcodemy)[@coolcodemy](https://github.com/coolcodemy)

---

Top Contributors

[![mhetreramesh](https://avatars.githubusercontent.com/u/3095445?v=4)](https://github.com/mhetreramesh "mhetreramesh (16 commits)")[![coolcodemy](https://avatars.githubusercontent.com/u/14998386?v=4)](https://github.com/coolcodemy "coolcodemy (8 commits)")[![epic-kaso](https://avatars.githubusercontent.com/u/5386122?v=4)](https://github.com/epic-kaso "epic-kaso (1 commits)")[![kenrowland](https://avatars.githubusercontent.com/u/15469754?v=4)](https://github.com/kenrowland "kenrowland (1 commits)")[![mjrider](https://avatars.githubusercontent.com/u/213105?v=4)](https://github.com/mjrider "mjrider (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

apiclientfilesystemFlysystembackblaze

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/runcloudio-flysystem-b2/health.svg)

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[mhetreramesh/flysystem-backblaze

Backblaze adapter for the flysystem filesystem abstraction library

63148.9k9](/packages/mhetreramesh-flysystem-backblaze)[barryvdh/elfinder-flysystem-driver

A Flysystem Driver for elFinder

1865.1M40](/packages/barryvdh-elfinder-flysystem-driver)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6134.8M150](/packages/league-flysystem-sftp-v3)[league/flysystem-google-cloud-storage

Google Cloud Storage adapter for Flysystem.

2319.4M68](/packages/league-flysystem-google-cloud-storage)[jacekbarecki/flysystem-onedrive

OneDrive adapter for the flysystem filesystem abstraction library

2431.0k](/packages/jacekbarecki-flysystem-onedrive)

PHPackages © 2026

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