Skip to content

hinet/flysystem-baidu-bos

Repository files navigation

flysystem-baidu-bos

Flysystem adapter for Baidu Bos SDK v0.8.20

Author Software License Packagist Version Total Downloads

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages