crehler / flysystem-ovh
Flysystem adapter for OVH
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 550
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: >=5.4.0
- league/flysystem: ~1.0
- rackspace/php-opencloud: ~1.12
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2022-01-10 13:43:30 UTC
README
Installation
composer require crehler/flysystem-ovh
Usage
See configuration section for credential details.
use Crehler\Flysystem\OvhObjectStorage; use Crehler\Flysystem\OvhObjectStorageAdapter as Adapter; use League\Flysystem\Filesystem; $client = new OvhObjectStorage([ 'username' => ':username', 'password' => ':password', 'tenantId' => ':tenantId', ]); $store = $client->objectStoreService('swift', 'SBG1'); $container = $store->getContainer('flysystem'); $filesystem = new Filesystem(new Adapter($container));
Alternatively:
use Crehler\Flysystem\OvhObjectStorage; use Crehler\Flysystem\OvhObjectStorageAdapter as Adapter; use Crehler\Flysystem\Filesystem; $options = [ 'username' => ':username', 'password' => ':password', 'tenantId' => ':tenantId', 'container' => 'flysystem', 'region' => 'SBG1', ]; $client = new OvhObjectStorage($options); $filesystem = new Filesystem(new Adapter($client->getContainer()));