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
Requires
- php: >=7.1
- league/flysystem: ^1.0.40
- league/flysystem-webdav: ^1.0.10
- php-opencloud/openstack: ^3.2
Requires (Dev)
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