PHPackages                             marcandreappel/flysystem-backblaze - 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. marcandreappel/flysystem-backblaze

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

marcandreappel/flysystem-backblaze
==================================

Backblaze adapter for the flysystem filesystem abstraction library

2.1.1(3y ago)132.4k↓25%5[1 issues](https://github.com/marcandreappel/flysystem-backblaze/issues)2MITPHPPHP ^8.0|^8.1

Since Aug 26Pushed 3y agoCompare

[ Source](https://github.com/marcandreappel/flysystem-backblaze)[ Packagist](https://packagist.org/packages/marcandreappel/flysystem-backblaze)[ Docs](https://github.com/marcandreappel/flysystem-backblaze)[ RSS](/packages/marcandreappel-flysystem-backblaze/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (34)Used By (2)

Backblaze B2 Flysystem Driver
=============================

[](#backblaze-b2-flysystem-driver)

[![Author](https://camo.githubusercontent.com/d58fab7753a0ce33d7f5812bf8feefdf5457c173a21528c4e963c740ebb572af/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406d6172635f616e6472652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/marc_andre)[![Latest Version on Packagist](https://camo.githubusercontent.com/c85bad70d460ea369549d3727d0af9b39caf4fffd25829be2f37047b1cab4dc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617263616e647265617070656c2f666c7973797374656d2d6261636b626c617a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcandreappel/flysystem-backblaze)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/08c1b5992d6872083588c437ecd877bcddf8a8b90090cb7b8c255d9d879f4d22/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617263616e647265617070656c2f666c7973797374656d2d6261636b626c617a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcandreappel/flysystem-backblaze)

Description
-----------

[](#description)

This Backblaze adapter makes it possible to use the Flysystem filesystem abstraction library with Backblaze.
It uses the [Backblaze B2 SDK](https://github.com/cwhite92/b2-sdk-php) to communicate with the API.

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

[](#installation)

Install the package with Composer:

```
composer require marcandreappel/flysystem-backblaze
```

For legacy systems (league/flysystem &lt; v3.0):

```
composer require marcandreappel/flysystem-backblaze:^1.8
```

Usage
-----

[](#usage)

```
use MarcAndreAppel\FlysystemBackblaze\BackblazeAdapter;
use League\Flysystem\Filesystem;
use BackblazeB2\Client;

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

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

Using ApplicationKey instead of MasterKey
-----------------------------------------

[](#using-applicationkey-instead-of-masterkey)

Visit [your Backblaze B2 dashboard](https://secure.backblaze.com/b2_buckets.htm) to get your account id and application key.

If you specify only the `$bucketName` when creating the BackblazeAdapter, your `$applicationKey` must be the **master key**. However, if you specify both bucket name and bucket id, you can use an application key. Fetch your `$bucketId` using the [b2 command line tool](https://www.backblaze.com/b2/docs/quick_command_line.html) `b2 get-bucket `

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

Documentation
-------------

[](#documentation)

Here is the [complete Flysystem guide](https://flysystem.thephpleague.com/docs/usage/filesystem-api/) with all available options.

For legacy systems, [consult the documentation for version 1](https://flysystem.thephpleague.com/v1/docs/).

Security
--------

[](#security)

If you discover any security related issues, please open a ticket on the issue tracker.

Credits
-------

[](#credits)

- [Ramesh Mhetre](https://github.com/mhetreramesh)
- [Mark Lambley](https://github.com/mlambley)
- [All Contributors](https://github.com/gliterd/flysystem-backblaze/graphs/contributors)

License
-------

[](#license)

The MIT License (MIT). Please [read the license file](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 63.6% 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 ~77 days

Recently: every ~3 days

Total

30

Last Release

1324d ago

Major Versions

1.7.3 → 2.0.02022-09-19

1.8.0 → 2.1.12022-10-03

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

1.0.4PHP &gt;=5.5.0

1.1.4PHP &gt;=5.6.0

1.5.0PHP ^7.1.8

1.6.1PHP ^7.2

1.7.1PHP ^8.0

2.0.1PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4620c96e07f06cc88660ac5aa15f0933df05b9900b3fda902be7371f37574c91?d=identicon)[marc-andre](/maintainers/marc-andre)

---

Top Contributors

[![mhetreramesh](https://avatars.githubusercontent.com/u/3095445?v=4)](https://github.com/mhetreramesh "mhetreramesh (42 commits)")[![marcandreappel](https://avatars.githubusercontent.com/u/946826?v=4)](https://github.com/marcandreappel "marcandreappel (11 commits)")[![mlambley](https://avatars.githubusercontent.com/u/17264636?v=4)](https://github.com/mlambley "mlambley (6 commits)")[![isaackwan](https://avatars.githubusercontent.com/u/1005813?v=4)](https://github.com/isaackwan "isaackwan (2 commits)")[![epic-kaso](https://avatars.githubusercontent.com/u/5386122?v=4)](https://github.com/epic-kaso "epic-kaso (1 commits)")[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (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

backblazebackblaze-b2flysystemflysystem-adapterapiclientfilesystemFlysystembackblaze

### Embed Badge

![Health badge](/badges/marcandreappel-flysystem-backblaze/health.svg)

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

###  Alternatives

[mhetreramesh/flysystem-backblaze

Backblaze adapter for the flysystem filesystem abstraction library

62146.8k9](/packages/mhetreramesh-flysystem-backblaze)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[jacekbarecki/flysystem-onedrive

OneDrive adapter for the flysystem filesystem abstraction library

2429.9k](/packages/jacekbarecki-flysystem-onedrive)[gliterd/laravel-backblaze-b2

Backblaze B2 Cloud Storage for Laravel 5

5341.6k](/packages/gliterd-laravel-backblaze-b2)[jerodev/flysystem-v3-smb-adapter

SMB adapter for Flysystem v3

1289.9k1](/packages/jerodev-flysystem-v3-smb-adapter)

PHPackages © 2026

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