https://github.com/zaxbux/flysystem-backblaze-b2
A Flysystem adapter for Backblaze B2.
https://github.com/zaxbux/flysystem-backblaze-b2
backblaze backblaze-b2 filesystem flysystem flysystem-adapter
Last synced: 2 months ago
JSON representation
A Flysystem adapter for Backblaze B2.
- Host: GitHub
- URL: https://github.com/zaxbux/flysystem-backblaze-b2
- Owner: zaxbux
- License: mit
- Created: 2019-03-25T00:00:07.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2022-10-19T22:27:36.000Z (almost 3 years ago)
- Last Synced: 2025-07-11T17:06:23.962Z (3 months ago)
- Topics: backblaze, backblaze-b2, filesystem, flysystem, flysystem-adapter
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 6
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zaxbux\Flysystem\BackblazeB2
[][github-releases]  [][packagist] [][licence] [][github-issues]
A Flysystem adaptor for Backblaze B2.
# Installation
``composer require zaxbux/flysystem-backblaze-b2``# Basic Usage
```php
use League\Flysystem\Filesystem;
use Zaxbux\BackblazeB2\Client;
use Zaxbux\Flysystem\BackblazeB2Adapter;$client = new Client(['B2_APPLICATION_KEY_ID', 'B2_APPLICATION_KEY']);
$adapter = new BackblazeB2Adapter($client, 'B2_BUCKET_ID');
$filesystem = new Filesystem($adapter);
```# Tests
Before running tests, ensure the `B2_APPLICATION_KEY_ID`, `B2_APPLICATION_KEY`, and `B2_BUCKET_ID` environment variables are set.
```
$ ./vendor/bin/phpunit
```# Contributions
Feel free to contribute in any way report an issue, make a suggestion, or send a pull request.# License
[MIT][licence][licence]: LICENCE.md
[packagist]: https://packagist.org/packages/zaxbux/flysystem-backblaze-b2
[github-issues]: https://github.com/zaxbux/flysystem-backblaze-b2/issues
[github-releases]: https://github.com/zaxbux/flysystem-backblaze-b2/releases