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

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

marcandreappel/laravel-backblaze-b2
===================================

Backblaze B2 Cloud Storage for PHP8+ &amp; Laravel 8+

2.0.2(3y ago)324.5k↓30%6[3 issues](https://github.com/marcandreappel/laravel-backblaze-b2/issues)MITPHPPHP ^8.0|^8.1

Since Jun 29Pushed 3y agoCompare

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

READMEChangelog (6)Dependencies (3)Versions (15)Used By (0)

Laravel Backblaze B2
====================

[](#laravel-backblaze-b2)

[![Author](https://camo.githubusercontent.com/d58fab7753a0ce33d7f5812bf8feefdf5457c173a21528c4e963c740ebb572af/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406d6172635f616e6472652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/marc_andre)[![Latest Version on Packagist](https://camo.githubusercontent.com/26b266f9462a3d4084c0060cc2b9f96f5a5a68c792e27b261683a6a15cf0955a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617263616e647265617070656c2f6c61726176656c2d6261636b626c617a652d62322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gliterd/laravel-backblaze-b2)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/d22ab4f448b038aadcf8ba92810a12c506037d1d6e1b6c0bc2991b82ac611a7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617263616e647265617070656c2f6c61726176656c2d6261636b626c617a652d62322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gliterd/laravel-backblaze-b2)

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

[](#description)

This package allows Laravel 9 to use Backblaze B2 buckets as filesystem. It uses the [Backblaze B2 SDK](https://github.com/gliterd/backblaze-b2) and the [Backblaze Flysystem Adapter](https://github.com/marcandreappel/flysystem-backblaze) to communicate with the API.

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

[](#installation)

For Laravel v9 and beyond, install it with Composer:

```
composer require marcandreappel/laravel-backblaze-b2
```

For legacy Laravel (v6 to v8):

```
composer require "marcandreappel/laravel-backblaze-b2:^1.4"
```

Configuration
-------------

[](#configuration)

In your `config/app.php`, add to the list of service providers:

```
\MarcAndreAppel\BackblazeB2\BackblazeB2ServiceProvider::class,
```

In your `config/filesystems.php` add under disks the driver:

```
        'b2' => [
            'driver'         => 'b2',
            'accountId'      => env('B2_APPLICATION_KEY_ID'),
            'applicationKey' => env('B2_APPLICATION_KEY_SECRET'),
            'bucketName'     => env('B2_BUCKET_NAME'),
            'bucketId'       => env('B2_BUCKET_ID', ''),
        ],
```

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

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

Visit [your Backblaze B2 dashboard](https://secure.backblaze.com/b2_buckets.htm) and 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 `.

Usage
-----

[](#usage)

Use it directly with the `Storage` facade.

```
\Storage::disk('b2')->put('filename.txt', 'My important content');
\Storage::disk('b2')->get('filename.txt')
```

Security
--------

[](#security)

If you discover any security related issues, please use the issue tracker.

Credits
-------

[](#credits)

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

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 80.4% 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 ~142 days

Recently: every ~124 days

Total

12

Last Release

1316d ago

Major Versions

1.4.2 → v2.0.02022-09-19

PHP version history (4 changes)1.0.0PHP &gt;=5.6.0

1.2.0PHP ^7.1.8

1.4.0PHP ^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 (45 commits)")[![marcandreappel](https://avatars.githubusercontent.com/u/946826?v=4)](https://github.com/marcandreappel "marcandreappel (7 commits)")[![mlambley](https://avatars.githubusercontent.com/u/17264636?v=4)](https://github.com/mlambley "mlambley (2 commits)")[![remzikocak](https://avatars.githubusercontent.com/u/1866678?v=4)](https://github.com/remzikocak "remzikocak (1 commits)")[![ziming](https://avatars.githubusercontent.com/u/679513?v=4)](https://github.com/ziming "ziming (1 commits)")

---

Tags

backblazebackblaze-b2flysystemflysystem-adapterlaravellaravel-packageapifilesystemFlysystemlaravelstoragebackblazedisks

### Embed Badge

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

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

###  Alternatives

[gliterd/laravel-backblaze-b2

Backblaze B2 Cloud Storage for Laravel 5

5341.6k](/packages/gliterd-laravel-backblaze-b2)[mhetreramesh/flysystem-backblaze

Backblaze adapter for the flysystem filesystem abstraction library

62146.8k9](/packages/mhetreramesh-flysystem-backblaze)[bringyourownideas/laravel-backblaze

Backblaze B2 Cloud Storage for Laravel 5. Original by Paul Olthof (@hpolthof) continued by @bringyourownideas

1237.8k](/packages/bringyourownideas-laravel-backblaze)[sausin/laravel-ovh

OVH Object Storage driver for laravel

40153.5k](/packages/sausin-laravel-ovh)[hpolthof/laravel-backblaze

Backblaze B2 Cloud Storage for Laravel 5

1220.3k](/packages/hpolthof-laravel-backblaze)[zing/laravel-flysystem-obs

Flysystem Adapter for OBS

1211.2k](/packages/zing-laravel-flysystem-obs)

PHPackages © 2026

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