Skip to content

larsboldt/php-rackspace-clouddb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

#php-rackspace-clouddb - work-in-progress

PHP Class for connecting applications to Rackspace's Cloud Databases Service

It helps view and manage:

  • API Connection
  • Instances
  • Database
  • Users
  • Flavors

##Usage - Connecting

Simple Connection

<?php

	$rcdb = new RackspaceCloudDB('example user','123abc123abc123abc123abc123abc12','123456');

?>

Connection to Alternative Datacenter

<?php

	$rcdb = new RackspaceCloudDB('example user','123abc123abc123abc123abc123abc12','123456','DFW');

?>

Connection to London Datacenter using London Authentication

<?php

	$rcdb = new RackspaceCloudDB('example user','123abc123abc123abc123abc123abc12','123456','LON','UK');
	
?>

##Usage - Basic

Example One - List Instances

<?php

	// Set up connection
	$rcdb = new RackspaceCloudDB('example user','123abc123abc123abc123abc123abc12','123456');

	// execute request
	$responseObject = $rcdb->listInstances();
	
	// View Response
	echo '<pre>'.print_r($responseObject,true).'</pre>';

?>

##Usage - Advanced

Manual Token Generation

<?php

	// Set up connection (with automatic token generation off)
	$rcdb = new RackspaceCloudDB('example user','123abc123abc123abc123abc123abc12','123456','ORD','US',false);
	
	// Create Token
	$rcdb->createAuthToken();
		
?>

##Additional Resources

Getting Started Guide

API Developer Guide

How-to and Other Resources

Code Samples and Bindings

Release Notes

##License

Unless otherwise noted, all files are released under the MIT license, exceptions contain licensing information in them.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

PHP Class for Rackspace Cloud Database API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%