wgr/flysystem-infomaniak

There is no license information available for the latest version (1.0.2) of this package.

flysystem for infomaniak

1.0.2 2022-08-04 14:32 UTC

This package is auto-updated.

Last update: 2024-05-04 18:18:25 UTC


README

⚠️ this is a sub-split, for pull requests and issues, visit: https://github.com/thephpleague/flysystem

composer require wgr/flysystem-infomaniak

Public Cloud

// CONFIG
$osClient = new \Wgr\Flysystem\Infomaniak\Http\OpenStackClient\OpenStackClient([
  'authUrl' => 'https://api.pub1.infomaniak.cloud/identity/v3',
  'region'  => 'dc3-a',
  'application_credential' => [
    'id' => 'XXXX',
    'secret' => "XXX",
  ],
  'scope'   => ['project' => ['id' => 'XXX']]
]);

// SETUP
$adapter = new \Wgr\Flysystem\Infomaniak\Adapter\OpenStack($osClient,'my-container','myFolder');
$filesystem = new \League\Flysystem\Filesystem($adapter);

// USAGE
$filesystem->write($path, $contents);

more doc is coming bro