定制 ciims-plugins/rackspaceuploader 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

ciims-plugins/rackspaceuploader

最新稳定版本:1.0.0

Composer 安装命令:

composer require ciims-plugins/rackspaceuploader

包简介

A CiiMS plugin to upload files to Rackspace Cloud files CDN

README 文档

README

This class enables CiiMS to upload files to Rackspace Cloud Files, or any OpenStack file store

Installation

This class should be installed with composer. After installing/uploading CiiMS, run this class

# composer require ciims-plugins/rackspaceuploader dev-master # DEV
composer require ciims-plugins/rackspaceuploader 1.0.0 # Versioned

How to Use

To use this class, you need to make a configuration change to your protected/config/params.php file.

<?php return array(

	[...]
	'ciims_plugins' => array(
		'upload' => array(
			'class' => 'CiiOpenstackUploader',
			'options' => array(
				'useOpenstack' => false, 	// Set to true to use a generic opensatck container
				'container' => '', 			// The container name
				'username' => '',     		// Your Openstack username
				'API_KEY' => '', 			// Your Openstack API key
				'region' => '', 	 	 	// The upload region
				'identity' => '', 			// Only applies when using a non Rackspace container
			)
		)
	)
	[...]
);

Options

The following options are available for this class:

useOpenstack (optional)

By default this plugin will attempt to connect to Racksapce Cloud files. If you want to use a generic openstack container, set this value to true

container (required)

The container name

username (required)

The username to access the container

API_KEY (required)

Your container API key

region (required)

The region you want to connect to

identity (optional)

If useOpenstack is set to true, you must specify the identity URL. Al;ternatively if you're connecting to a non US Rackspace Cloud files endpoint, you can specify your identity provider here

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

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