drauta/ovh-object-storage-laravel

Integration with Ovh object container
1,149 18
Install
composer require drauta/ovh-object-storage-laravel
PHP:>=5.4.0
License:MIT
Last Updated:Jun 1, 2020
Links: GitHub  ·  Packagist
Maintainer: drauta

Installation

Install using composer:

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

add to config/app.php

Drauta\OvhObjectStorage\OvhServiceProvider::class,

Add the following to the config/filesystem.php

'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.

Usage:

Saves the form file: $filename not mandatory

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):

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

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

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

Return if a file exists (true or false)

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

Related Packages

wobeto/twitter

Laravel 4 Service Provider to interact with twitter account, like return a colle...

135 1
andhikamaheva/date

A date library to help you work with dates in different languages

13 1
vlados/laravel-blade-crawler-detect

Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...

5,439 0
maystro/filament-popup-modal

A comprehensive modal dialog system for FilamentPHP with progress bars, callback...

7 1