zhuxiaoqiao/flysystem-baidu-bos

Flysystem adapter for Baidu Bos SDK v0.8.1

v1.0.4 2015-08-05 08:01 UTC

This package is not auto-updated.

Last update: 2024-10-26 18:49:19 UTC


README

Flysystem adapter for Baidu Bos SDK v0.8.5

Author Software License Packagist Version Total Downloads

Installation

composer require "zhuxiaoqiao/flysystem-baidu-bos": "~1.0"

Usage

use Zhuxiaoqiao\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);