wooxo / OvhSwiftLaravel by wooxo

Library to use OVH PCI Object Storage API with Laravel.
1,634
5
6
Package Data
Maintainer Username: wooxo
Maintainer Contact: dev@wooxo.fr (Wooxo SA)
Package Create Date: 2015-07-06
Package Last Update: 2020-10-05
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-27 03:10:50
Package Statistics
Total Downloads: 1,634
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 5
Total Watchers: 6
Total Forks: 1
Total Open Issues: 0

OvhSwiftLaravel

Build Status Latest Stable Version Total Downloads

It's a library for Laravel 5.2.

For Laravel 4.2, use 0.1.x tags.

Library to use OVH PCI Object Storage API with Laravel Based on work from : https://github.com/drauta/runabove-laravel.

Installation

Install using composer:

composer require wooxo/ovh-swift-laravel "~1.0"

Publish config and complete informations (use OVH API to get Credentials)

php artisan config:publish 

Add provider in config.app

'providers' = array(
    [...],
    Wooxo\OvhSwiftLaravel\OvhSwiftLaravelServiceProvider::class
);

Usage

Get file list

$client = new OvhSwiftLaravel();
$client->fileList();

Upload a file

$client = new OvhSwiftLaravel();
$client->filePut('path/to/the/file');

Get an uploaded file

$client = new OvhSwiftLaravel();
$client->fileGet('hello_world.txt');

Delete an uploaded file

$client = new OvhSwiftLaravel();
$client->fileDelete('hello_world.txt');

Check if a file exists

$client = new OvhSwiftLaravel();
$client->fileExists('hello_world.txt');