wgr / flysystem-infomaniak
There is no license information available for the latest version (3.0.2) of this package.
flysystem for infomaniak
3.0.2
2024-10-23 08:25 UTC
Requires
- php: >=7.1
- league/flysystem: ^3.0
- league/flysystem-webdav: ^3.0
- 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