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: | 2025-01-08 15:04:02 |
Package Statistics | |
---|---|
Total Downloads: | 1,653 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 6 |
Total Forks: | 1 |
Total Open Issues: | 0 |
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.
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
);
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');