Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bringyourownideas/laravel-backblaze
B2-Backblaze adapter for Laravel 5.
https://github.com/bringyourownideas/laravel-backblaze
b2-backblaze-adapter backblaze backblaze-adapter backblaze-b2 backup laravel laravel-5-package
Last synced: about 1 month ago
JSON representation
B2-Backblaze adapter for Laravel 5.
- Host: GitHub
- URL: https://github.com/bringyourownideas/laravel-backblaze
- Owner: bringyourownideas
- Created: 2018-12-30T08:16:57.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T10:59:56.000Z (over 3 years ago)
- Last Synced: 2024-09-27T21:07:48.349Z (3 months ago)
- Topics: b2-backblaze-adapter, backblaze, backblaze-adapter, backblaze-b2, backup, laravel, laravel-5-package
- Language: PHP
- Homepage: https://bringyourownideas.com/blog/backing-up-your-laravel-project-to-backblaze-b2/
- Size: 11.7 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# B2-Backblaze Storage Adapter for Laravel 5+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/bringyourownideas/laravel-backblaze.svg?style=flat-square)](https://packagist.org/packages/bringyourownideas/laravel-backblaze)
[![Total Downloads](https://img.shields.io/packagist/dt/bringyourownideas/laravel-backblaze.svg?style=flat-square)](https://packagist.org/packages/bringyourownideas/laravel-backblaze)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.](https://github.com/bringyourownideas) it is used in combination with [spatie's Laravel backup](https://github.com/spatie/laravel-backup) to backup our Laravel projects.
The code is based on [Paul Olthof](https://github.com/hpolthof)s [unmaintained repo](https://github.com/hpolthof/laravel-backblaze) 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 https://github.com/bringyourownideas/laravel-backblaze/issues/6#issuecomment-769718518 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](https://bringyourownideas.com/blog/backing-up-your-laravel-project-to-backblaze-b2/). 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
* [Paul Olthof](https://github.com/hpolthof)
* [Ramesh Mhetre](https://github.com/mhetreramesh/flysystem-backblaze)
* [Chris White](https://github.com/cwhite92/b2-sdk-php)## License
MIT, as the original repository.