hpolthof / laravel-backblaze by hpolthof

Backblaze B2 Cloud Storage for Laravel 5
20,302
12
2
Package Data
Maintainer Username: hpolthof
Maintainer Contact: hpolthof@gmail.com (Paul Olthof)
Package Create Date: 2016-12-01
Package Last Update: 2019-09-02
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 15:18:05
Package Statistics
Total Downloads: 20,302
Monthly Downloads: 11
Daily Downloads: 0
Total Stars: 12
Total Watchers: 2
Total Forks: 8
Total Open Issues: 3

Backblaze B2 Cloud Storage for Laravel 5

Latest Version on Packagist Total Downloads

Backblaze B2 is a great cloud storage system that compares to Amazon S3, but uses lower pricing, so worth the try. ;-) Since I couldn't find a serviceprovider to implement B2 into the Laravel Filesystem, I wrote one myself. Feel free to use it.

Installation

Via Composer

composer require hpolthof/laravel-backblaze

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

\Hpolthof\Backblaze\BackblazeServiceProvider::class,

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

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

Now just paste in your credentials and bucketname and you're ready to go!

Usage

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

Credits

License

MIT