hinet / flysystem-baidu-bos
Flysystem adapter for Baidu Bos SDK v0.9
dev-master / 1.0.x-dev
2021-04-14 10:31 UTC
Requires
- php: >=5.4.0
- league/flysystem: ~1.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-11-08 11:54:39 UTC
README
Flysystem adapter for Baidu Bos SDK v0.8.20
Installation
composer require "hinet/flysystem-baidu-bos": "~1.0.5"
Usage
use Hinet\Flysystem\BaiduBos\BaiduBosAdapter; use BaiduBce\Services\Bos\BosClient; use League\Flysystem\Filesystem; $BOS_TEST_CONFIG = array( 'credentials' => array( 'ak' => 'You AK', 'sk' => 'You SK', ), 'endpoint' => 'http://bj.bcebos.com', ); $client = new BosClient($BOS_TEST_CONFIG); $adapter = new BaiduBosAdapter($client, 'bucket-name'); $filesystem = new Filesystem($adapter);