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

ActiveLibrary

mwebdev/backblaze-b2
====================

The Laravel Backblaze B2 Storage Service Provider give provision for for laravel storage to use blackblaze as their storage system.

v1.5(3y ago)09MITPHP

Since May 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Ekemena/mwebdev)[ Packagist](https://packagist.org/packages/mwebdev/backblaze-b2)[ RSS](/packages/mwebdev-backblaze-b2/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

backblaze-b2 is the SDK for working with Backblaze's B2 storage service.

Install Via Composer

$ composer require mwebdev/backblaze-b2

Usage use BackblazeB2\\Client; use BackblazeB2\\Bucket;

$options = \['auth\_timeout\_seconds' =&gt; seconds\];

$client = new Client('accountId', 'applicationKey', $options); $options is optional. If omitted, the default timeout is 12 hours. The timeout allows for a long lived Client object so that the authorization token does not expire.

ApplicationKey is not supported yet, please use MasterKey only Returns a bucket details $bucket = $client-&gt;createBucket(\[ 'BucketName' =&gt; 'my-special-bucket', 'BucketType' =&gt; Bucket::TYPE\_PRIVATE // or TYPE\_PUBLIC \]); Change the bucket Type $updatedBucket = $client-&gt;updateBucket(\[ 'BucketId' =&gt; $bucket-&gt;getId(), 'BucketType' =&gt; Bucket::TYPE\_PUBLIC \]); List all buckets $buckets = $client-&gt;listBuckets(); Delete a bucket $client-&gt;deleteBucket(\[ 'BucketId' =&gt; 'YOUR\_BUCKET\_ID' \]); File Upload $file = $client-&gt;upload(\[ 'BucketName' =&gt; 'my-special-bucket', 'FileName' =&gt; 'path/to/upload/to', 'Body' =&gt; 'I am the file content'

```
// The file content can also be provided via a resource.
// 'Body' => fopen('/path/to/input', 'r')

```

\]); File Download $fileContent = $client-&gt;download(\[ 'FileId' =&gt; $file-&gt;getId()

```
// Can also identify the file via bucket and path:
// 'BucketName' => 'my-special-bucket',
// 'FileName' => 'path/to/file'

// Can also save directly to a location on disk. This will cause download() to not return file content.
// 'SaveAs' => '/path/to/save/location'

```

\]); File Copy $copyOfFile = $client-&gt;copy(\[ 'BucketName' =&gt; $bucketName, 'FileName' =&gt; $path, 'SaveAs' =&gt; $newPath,

```
// Can also supply BucketId instead of BucketName
// Optional are DestinationBucketName or DestinationBucketId

```

\]); File Delete $fileDelete = $client-&gt;deleteFile(\[ 'FileId' =&gt; $file-&gt;getId()

```
// Can also identify the file via bucket and path:
// 'BucketName' => 'my-special-bucket',
// 'FileName' => 'path/to/file'

```

\]); List all files $fileList = $client-&gt;listFiles(\[ 'BucketId' =&gt; 'YOUR\_BUCKET\_ID' \]); Change log Please see CHANGELOG for more information what has changed recently.

Testing $ vendor/bin/phpunit Contributing Please see CONTRIBUTING and CONDUCT for details.

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

Credits All Contributors License The MIT License (MIT). Please see License File for more information.

Laravel usage

Install
-------

[](#install)

Via Composer

```
composer require mwebdev/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'     => '',
],
```

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')
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6ae8ce20d5e21203c861ccd5e64c0d64cea17b57c6716ac5393d41aa33536400?d=identicon)[Ekemena](/maintainers/Ekemena)

---

Top Contributors

[![Ekemena](https://avatars.githubusercontent.com/u/18734471?v=4)](https://github.com/Ekemena "Ekemena (7 commits)")

### Embed Badge

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

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

PHPackages © 2026

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