oss-tools/flysystem-ibm-cos

Flysystem Interface for IBM Cloud Object Storage

2.0.0 2022-03-11 19:06 UTC

This package is auto-updated.

Last update: 2024-10-12 01:16:57 UTC


README

This is an IBM Cloud Object Storage adapter for Flysystem.

Note

This package is a detached fork of tavux/flysystem-ibm-cos

Installation

Composer is the best way, as with all of Flysystem!

composer require oss-tools/flysystem-ibm-cos

Usage

Initial setup would be something like this:

use OSSTools\Flysystem\IBMCloudObjectStorage\IbmCosAdapter;
use League\Flysystem\Filesystem;

$storage = new Filesystem(
    new IbmCosAdapter([
        'key' => '<access_key>',
        'secret' => '<access_secret_key>',
        'region' => '<region>',
        'endpoint' => '<endpoint>',
    ], '<bucket>')
);

var_dump($storage->listContents(''));