ciims-plugins/awsuploader 问题修复 & 功能扩展

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

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

ciims-plugins/awsuploader

最新稳定版本:1.0.3

Composer 安装命令:

composer require ciims-plugins/awsuploader

包简介

AWS S3 Uploader plugin for CiiMS

README 文档

README

This class enables CiiMS to upload files to Amazon S3, isntead of uploading files to the uploads directory

Installation

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

# composer require ciims-plugins/awsuploader dev-master # DEV
composer require ciims-plugins/awsuploader 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' => 'CiiAWSUploader',
			'options' => array(
				'bucket' => ''
				'AWS_ACCESS_KEY' => '',
				'AWS_SECRET_ACCESS_KEY' => '',
				'region' => '', // required; @see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
				'cdn_domain' => 'https://cdn.example.com' // set to NULL if not used, if set, no trailing slash
			)
		)
	)
	[...]
);

Options

The following options are available for this class:

AWS_ACCESS_KEY (required)

Your AWS Access Key

AWS_SECRET_ACCESS_KEY (required)

Your AWS Secret Key

bucket (required)

The bucket name

cdn_domain (optional)

If you have a custom domain infront of AWS, you can specify it here. CiiMS will use this domain for the CDN urls instead of the default AWS domain

统计信息

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

GitHub 信息

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

其他信息

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