wooxo/ovh-swift-laravel
最新稳定版本:v2.0.4
Composer 安装命令:
composer require wooxo/ovh-swift-laravel
包简介
Library to use OVH PCI Object Storage API with Laravel 4.2.
README 文档
README
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');
统计信息
- 总下载量: 1.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-01