bringyourownideas/laravel-backblaze
最新稳定版本:2.0.0
Composer 安装命令:
composer require bringyourownideas/laravel-backblaze
包简介
Backblaze B2 Cloud Storage for Laravel 5. Original by Paul Olthof (@hpolthof) continued by @bringyourownideas
README 文档
README
Backblaze B2 is a cloud storage system comparable to Amazons S3. This adapter allows you to use B2 within Laravel 5+ applications. Tested are Laravel 5, 6, 7, and 8.
At bring your own ideas Ltd. it is used in combination with spatie's Laravel backup to backup our Laravel projects.
The code is based on Paul Olthofs unmaintained repo and addresses mostly bugs at this point.
Use B2 via S3 instead!
As B2 has an S3-compatible interface it's recommended to use this instead. See #6 (comment) for more details. It's unlikely this package will be maintained further and migrating is recommended.
Step by Step Guide
On our company website we have released a detailed step by step guide to back up your Laravel projects to Backblaze. Feel free to reach out if you find any mistakes or have trouble implementing the steps.
Installation
Via Composer
composer require bringyourownideas/laravel-backblaze
In your app.php config file add to the list of service providers:
\bringyourownideas\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.
统计信息
- 总下载量: 37.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-12-30