ryanvade / flysystem-box

Flysystem Box.com Adapter
MIT License
3 stars 4 forks source link

Documentation? #5

Open Helveg opened 5 years ago

Helveg commented 5 years ago

Any "Getting Started"s lying around on how to get a working adapter?

For the next person wondering, the 'Client' class the constructor requires is just the LaravelBox so this'll do to get started:

use LaravelBox\LaravelBox;
use FlysystemBox\BoxAdapter;
use League\Flysystem\Filesystem;

$box = new LaravelBox("YOUR-API-KEY");
$adapter = new BoxAdapter($box);
$remote = new Filesystem($adapter);
ryanvade commented 5 years ago

No, I don't have any documentation for this package at the moment.

Both the Flysystem adapter and the Client need to be refactored. My previous employers asked me to make this package and now they don't have any interest in it. I personally don't use Box.com so it hasn't been on the top of my list.