zburke/flysystem-box

Flysystem adapter for Box

0.1.2 2016-09-30 17:05 UTC

This package is not auto-updated.

Last update: 2024-04-27 17:27:54 UTC


README

Installation

composer require zburke/flysystem-box

Usage

Assuming you have a valid bearer token from an oAuth2 authentication session:

use Zburke\Flysystem\Box\BoxAdapter;
use League\Flysystem\Filesystem;

$adapter = new BoxAdapter('oauth-token', [$prefix]);

$filesystem = new Filesystem($adapter);

To generate a temporary developer token, visit https://app.box.com/developers/services/ and click the "Edit Application" button for the app you want to use, then click the "Create a developer token" button.

Support

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.