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

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

gliterd/laravel-backblaze-b2
============================

Backblaze B2 Cloud Storage for Laravel 5

1.3.0(5y ago)5341.6k29[2 issues](https://github.com/gliterd/laravel-backblaze-b2/issues)MITPHPPHP ^7.1.8CI failing

Since Jun 29Pushed 5y ago3 watchersCompare

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

READMEChangelogDependencies (4)Versions (9)Used By (0)

laravel-backblaze-b2
====================

[](#laravel-backblaze-b2)

[![Author](https://camo.githubusercontent.com/9b27da4a3dc99169f09d93908a282ab361609e9f516e472b6441958dceea8b7f/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406d686574726572616d6573682d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/mhetreramesh)[![Latest Version on Packagist](https://camo.githubusercontent.com/5672e9de03cc91e3e53f7e1ab878e7e48b917c41382af5aab63e3d962a0d653c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676c69746572642f6c61726176656c2d6261636b626c617a652d62322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gliterd/laravel-backblaze-b2)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/42aa24f1fcb323b9845f45e278860a54bdd845f11b841a2b9a8d2d839d3439ab/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f676c69746572642f6c61726176656c2d6261636b626c617a652d62322f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/gliterd/laravel-backblaze-b2)[![Coverage Status](https://camo.githubusercontent.com/0362e73a59a96a457fa3a37cbd82e95e61926da2aa0a3b37a56fb9018f044896/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f676c69746572642f6c61726176656c2d6261636b626c617a652d62322e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/gliterd/laravel-backblaze-b2/code-structure)[![Quality Score](https://camo.githubusercontent.com/a51a1180aeb68e5eb265b68a220107bcdbc045d856a696a201aafb3c000f8cdc/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f676c69746572642f6c61726176656c2d6261636b626c617a652d62322e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/gliterd/laravel-backblaze-b2)[![Total Downloads](https://camo.githubusercontent.com/1654fb7022b89859a7aa1aceb2b876177d2dc39659efec4039bb951352ab93db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676c69746572642f6c61726176656c2d6261636b626c617a652d62322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gliterd/laravel-backblaze-b2)

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

The Laravel Backblaze B2 Storage Service Provider give provision for for laravel storage to use blackblaze as their storage system. It uses the [Backblaze B2 SDK](https://github.com/gliterd/backblaze-b2) &amp; [Flysystem Adapter](https://github.com/gliterd/flysystem-backblaze) to communicate with the Backblaze b2 API.

Install
-------

[](#install)

Via Composer

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

In your app.php config file add to the list of service providers:

```
\Gliterd\BackblazeB2\BackblazeB2ServiceProvider::class,
```

Add the following to your filesystems.php config file in the disks section:

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

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

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

If you specify only the bucket name, your application key must be the master key. However, if you specify both bucket name and bucket id, you do not need the master key and can use a single-bucket key. Fetch your bucket id using the [b2 command line tool](https://www.backblaze.com/b2/docs/quick_command_line.html) `b2 get-bucket `

Usage
-----

[](#usage)

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

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

and

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

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)

- [Ramesh Mhetre](https://github.com/mhetreramesh)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 91.8% 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 ~190 days

Recently: every ~237 days

Total

6

Last Release

1931d ago

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

1.2.0PHP ^7.1.8

### Community

Maintainers

![](https://www.gravatar.com/avatar/abd27ad295ea30a2c5560e990ff557b1db6940aad0ae2f69de1595717053b745?d=identicon)[mhetreramesh](/maintainers/mhetreramesh)

![](https://www.gravatar.com/avatar/a42dca105f2bbfaa580a01156becfe7214b1b1a4f1f49cdbf4d2a6113029c24a?d=identicon)[mlambley](/maintainers/mlambley)

---

Top Contributors

[![mhetreramesh](https://avatars.githubusercontent.com/u/3095445?v=4)](https://github.com/mhetreramesh "mhetreramesh (45 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-adapterbackblaze-b2flysystemflysystem-adapterlaravellaravel-storagestorageapifilesystemFlysystemlaravelstoragebackblazedisks

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[bringyourownideas/laravel-backblaze

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

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

Backblaze B2 Cloud Storage for Laravel 5

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

Backblaze adapter for the flysystem filesystem abstraction library

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

OVH Object Storage driver for laravel

40153.5k](/packages/sausin-laravel-ovh)[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)
