crehler / flysystem-ovh
OVH 的 Flysystem 适配器
此软件包的官方仓库似乎已不存在,因此该软件包已被冻结。
1.0.3
2019-07-10 08:16 UTC
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
安装
composer require crehler/flysystem-ovh
用法
请参阅配置部分以获取凭证详细信息。
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));
或者
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()));