techyah / flysystem-ovh
此软件包已被弃用且不再维护。未建议替代包。
OVH Openstack Swift 对象存储的 Flysystem 适配器
1.0.1
2015-12-01 03:31 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 not auto-updated.
Last update: 2019-12-28 18:59:26 UTC
README
安装
composer require techyah/flysystem-ovh
使用方法
use League\Flysystem\Filesystem; use Techyah\Flysystem\OVH\OVHClient; use Techyah\Flysystem\OVH\OVHAdapter; $options = [ 'username' => ':username', 'password' => ':password', 'tenantId' => ':tenantId', 'container' => ':container', 'region' => ':region', // default BHS1 ]; $client = new OVHClient($options); $filesystem = new Filesystem(new OVHAdapter($client->getContainer()));
Laravel
为 Laravel 添加以下行到 config/app.php
文件中的 providers
数组
Techyah\Flysystem\OVH\Supports\Laravel\OVHServiceProvider::class,
许可证
这是开源软件,遵循 MIT 许可协议。