techyah/flysystem-ovh

This package is abandoned and no longer maintained. No replacement package was suggested.

Flysystem Adapter for OVH Openstack Swift Object Storage

1.0.1 2015-12-01 03:31 UTC

This package is not auto-updated.

Last update: 2019-12-28 18:59:26 UTC


README

Author

Installation

composer require techyah/flysystem-ovh

Usage

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

for laravel add this line to the providers array in config/app.php :

Techyah\Flysystem\OVH\Supports\Laravel\OVHServiceProvider::class,

License

This is open-sourced software licensed under the MIT license.