jgb-solutions / backblaze-b2
Backblaze laravel storage adapter
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jgb-solutions/backblaze-b2
Requires
- php: >=5.6
- cwhite92/b2-sdk-php: ^1.0
- illuminate/cache: 5.3.* | 5.4.* | 5.5.* | 5.6.*
- illuminate/support: 5.3.* | 5.4.* | 5.5.* | 5.6.*
- mhetreramesh/flysystem-backblaze: ^1.0
This package is auto-updated.
Last update: 2025-10-18 10:37:57 UTC
README
Setup:
composer require jgb-solutions/backblaze-b2
If on Laravel 5.5+ the package will auto register itself. Otherwise register JGBSolutions\Backblaze\BackblazeServiceProvider::class, then add a config array in filesystems.php.
'b2' => [
'driver' => 'b2',
'key' => env('BACKBLAZE_B2_KEY'),
'host' => env('BACKBLAZE_B2_HOST'),
'bucket' => env('BACKBLAZE_B2_BUCKET'),
'account' => env('BACKBLAZE_B2_ACCOUNT'),
'disposition' => env('BACKBLAZE_B2_DISPOSITION')
],
host can be set if you want to link directly to files in buckets marked allPublic.
See this handy guide for setting up cloudflare page rules to turn your bucket into a CDN.
Features
- Caches the auth token, meaning you don't constantly hit the auth endpoint.
- Refreshes the auth token for long-running processes (like
queue:work). - Option to specifiy the
Content-Dispositionheader using theX-Bz-Info-b2-content-dispositionheader. Default isattachment.