2017 © Pedro Peláez
 

library ovh-object-storage-laravel

Integration with Ovh object container

image

drauta/ovh-object-storage-laravel

Integration with Ovh object container

  • Tuesday, March 8, 2016
  • by drauta
  • Repository
  • 4 Watchers
  • 16 Stars
  • 991 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

Installation

Install using composer:, (*1)

composer require drauta/ovh-object-storage-laravel "dev-master"

add to config/app.php, (*2)

Drauta\OvhObjectStorage\OvhServiceProvider::class,

Add the following to the config/filesystem.php, (*3)

'ovh' => [
    'driver'   => 'ovh',
    'username' => 'yourUsername',
    'password' => 'yourPassword',     
    'tenantId' => 'yourTeenantId',
    'region'   => 'yourRegion',
    'container'=> 'yourContainer',
    'container_url' => 'containerPublicURL'
],

Laravel

This package provides an integration with OVH object container., (*4)

Usage:, (*5)

Saves the form file: $filename not mandatory, (*6)

Storage::disk('ovh')->filePut($request->file('file'), $filename = null);

Get the file url from config container public URL (for speed optimization, no call is made to OS api):, (*7)

Storage::disk('ovh')->fileGetUrl($filename);

Get the file url from container (call to OS api, slower than fileGetUrl() ):, (*8)

Storage::disk('ovh')->fileGet($filename);

Return if a file exists (true or false), (*9)

Storage::disk('ovh')->fileExists($filename);

The Versions

08/03 2016

dev-master

9999999-dev

Integration with Ovh object container

  Sources   Download

MIT

The Requires

 

by Avatar drauta
by Oscar
by Sergio

laravel runabove