sundev / laravel-b2
Backblaze B2 Cloud Storage for Laravel 8. Original by Paul Olthof (@hpolthof) continued by @soncemvo
0.2
2021-01-29 08:55 UTC
Requires
- php: ^7.1|^8.0
- league/flysystem: 1.1.3
Requires (Dev)
- symfony/thanks: ^1.0
This package is auto-updated.
Last update: 2024-03-29 04:19:47 UTC
README
Backblaze B2 is a cloud storage system comparable to Amazons S3. This adapter allows you to use B2 within Laravel 8 applications.
The code is based on Paul Olthofs unmaintained repo
Installation
Via Composer
composer require sundev/laravel-b2
In your app.php config file add to the list of service providers:
\sundev\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, as the original repository.