Skip to content

tavux/flysystem-ibm-cos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flysystem Adapter for IBM Cloud Object Storage

This is an IBM Cloud Object Storage adapter for Flysystem.

Installation

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

composer require tavux/flysystem-ibm-cos

Usage

Initial setup would be something like this:

use Tavux\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(''));