2017 © Pedro Peláez
 

library awsuploader

AWS S3 Uploader plugin for CiiMS

image

ciims-plugins/awsuploader

AWS S3 Uploader plugin for CiiMS

  • Monday, January 30, 2017
  • by charlesportwoodii
  • Repository
  • 1 Watchers
  • 0 Stars
  • 587 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

CiiAWSUploader Class

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

Installation

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

# 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., (*3)

<?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:, (*4)

__AWS_ACCESS_KEY__ (required), (*5)

Your AWS Access Key, (*6)

__AWS_SECRET_ACCESS_KEY__ (required), (*7)

Your AWS Secret Key, (*8)

__bucket__ (required), (*9)

The bucket name, (*10)

__cdn_domain__ (optional), (*11)

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, (*12)

The Versions

30/01 2017

dev-master

9999999-dev https://github.com/charlesportwoodii/CiiAWSUploader

AWS S3 Uploader plugin for CiiMS

  Sources   Download

MIT

The Requires

 

amazon s3 aws file upload

28/03 2015

1.0.3

1.0.3.0 https://github.com/charlesportwoodii/CiiAWSUploader

AWS S3 Uploader plugin for CiiMS

  Sources   Download

MIT

The Requires

 

amazon s3 aws file upload

28/03 2015

1.0.2

1.0.2.0 https://github.com/charlesportwoodii/CiiAWSUploader

AWS S3 Uploader plugin for CiiMS

  Sources   Download

MIT

The Requires

 

amazon s3 aws file upload

21/03 2015

1.0.1

1.0.1.0 https://github.com/charlesportwoodii/CiiAWSUploader

AWS S3 Uploader plugin for CiiMS

  Sources   Download

MIT

The Requires

 

amazon s3 aws file upload

07/02 2015

1.0.0

1.0.0.0 https://github.com/charlesportwoodii/CiiAWSUploader

AWS S3 Uploader plugin for CiiMS

  Sources   Download

MIT

The Requires

 

amazon s3 aws file upload