GithubHelp home page GithubHelp logo

ovhswiftlaravel's Introduction

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

ovhswiftlaravel's People

Contributors

lflaszlo avatar

Stargazers

Simon Auer avatar Youssef Bouhjira avatar Maxime avatar Christopher Dosin avatar Adam Brown avatar

Watchers

Paul Labedan avatar  avatar James Cloos avatar Thibaut avatar Lampson Peter avatar  avatar

Forkers

plamp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.