SinaAppEngine Storage服务的Flysystem Adapter.
通过composer安装
composer require litp/flysystem-sae-storage
生成filesystem对象:
use League\Flysystem\Filesystem;
use Litp\Flysystem\Storage;
use Litp\Flysystem\StorageAdapter;
$bucket = 'name of bucket here';
$client = new Storage();
$adapter = new StorageAdapter($client,$bucket);
$filesystem = new Filesystem($adapter);
使用filesystem对象,更多参见Flysystem网站:
$filesystem->has('path/to/file');
$filesystem->put('path/to/file');
$filesystem->read('path/to/file');