zburke / flysystem-box
Flysystem adapter for Box
0.1.2
2016-09-30 17:05 UTC
Requires
- php: >=5.4.0
- adammbalogh/box-sdk: @stable
- league/flysystem: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.8
This package is not auto-updated.
Last update: 2025-01-18 21:52:41 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.