PHP code example of ciims-plugins / rackspaceuploader

1. Go to this page and download the library: Download ciims-plugins/rackspaceuploader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ciims-plugins / rackspaceuploader example snippets

protected/config/params.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
			)
		)
	)
	[...]
);