drauta/ovh-object-storage-laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

drauta/ovh-object-storage-laravel

Composer 安装命令:

composer require drauta/ovh-object-storage-laravel

包简介

Integration with Ovh object container

README 文档

README

Install using composer:

composer require drauta/ovh-object-storage-laravel "dev-master"

add to config/app.php

Drauta\OvhObjectStorage\OvhServiceProvider::class,

Add the following to the config/filesystem.php

'ovh' => [
	'driver'   => 'ovh',
	'username' => 'yourUsername',
	'password' => 'yourPassword',	  
	'tenantId' => 'yourTeenantId',
	'region'   => 'yourRegion',
	'container'=> 'yourContainer',
	'container_url' => 'containerPublicURL'
],

Laravel

This package provides an integration with OVH object container.

Usage:

Saves the form file: $filename not mandatory

Storage::disk('ovh')->filePut($request->file('file'), $filename = null);

Get the file url from config container public URL (for speed optimization, no call is made to OS api):

Storage::disk('ovh')->fileGetUrl($filename);

Get the file url from container (call to OS api, slower than fileGetUrl() ):

Storage::disk('ovh')->fileGet($filename);

Return if a file exists (true or false)

Storage::disk('ovh')->fileExists($filename);

统计信息

  • 总下载量: 1.15k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-02