LaravelPackages.net
Acme Inc.
Toggle sidebar
wooxo/ovh-swift-laravel

Library to use OVH PCI Object Storage API with Laravel 4.2.

1.656
5
v2.0.4
About wooxo/ovh-swift-laravel

wooxo/ovh-swift-laravel is a Laravel package for library to use ovh pci object storage api with laravel 4.2.. It currently has 5 GitHub stars and 1.656 downloads on Packagist (latest version v2.0.4). Install it with composer require wooxo/ovh-swift-laravel. Discover more Laravel packages by wooxo or browse all Laravel packages to compare alternatives.

Last updated

OvhSwiftLaravel

Build Status Latest Stable Version Total Downloads

It's a library for Laravel 4.2.

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 "~0.1"

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

php artisan config:publish wooxo/ovh-swift-laravel

Add provider in config.app

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

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');
Comments