techyah / flysystem-ovh
Flysystem Adapter for OVH Openstack Swift Object Storage
Installs: 11 049
Dependents: 2
Suggesters: 2
Security: 0
Stars: 11
Watchers: 2
Forks: 3
Open Issues: 1
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
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.