Yii 2.0: yii2-rackspace

A Yii2 plugin for some Rackspace lovin'
1 follower

This extension provides the Rackspace SDK as a Yii2 object.

Defining the Extension

Here is the full definition, from an example:

'rackspace' => [
    'class' => 'sammaye\rackspace\Rackspace',
    'identityEndpoint' => 'US_IDENTITY_ENDPOINT',
    'username' => 'SomeNotSoAwesomeUser',
    'apiKey' => 'AwesomeKeyInit'

Everything is quite self explanatory except for identityEndpoint. This is a string representation of the constant name.

At the time of writing there are currently two values for the identityEndpoint option:


These directly relate to the SDK's own.

Now with this definition you can just use the API like the component doesn't even exist, for example:

$cdn = Yii::$app->rackspace->cdnService();


Be the first person to leave a comment

Please to leave your comment.

Create extension
No downloadable files yet
  • Yii Version: 2.0
  • License: New BSD License
  • Developed by: Sammaye
  • Category: Others
  • Votes: No votes yet
  • Downloaded: 0 times
  • Created on: Mar 29, 2016
  • Last updated: Mar 29, 2016