Skip to content

php-opencloud is a software development kit (SDK) to help developers using PHP to work with OpenStack and other open clouds. Since the library was developed at Rackspace, it works with the Rackspace public cloud, and should also work with other OpenStack-based clouds with minimal effort.

License

Notifications You must be signed in to change notification settings

james75/php-opencloud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-opencloud

PHP SDK for OpenStack/Rackspace APIs

IMPORTANT NOTE: With release 1.3, all of the file extensions have been changed from .inc to .php. This means that any existing code must be edited to use this new version.

See the COPYING file for license and copyright information.

For other SDKs, see http://developer.rackspace.com

The PHP SDK should work with most OpenStack-based cloud deployments, though it specifically targets the Rackspace public cloud. In general, whenever a Rackspace deployment is substantially different than a pure OpenStack one, a separate Rackspace subclass is provided so that you can still use the SDK with a pure OpenStack instance (for example, see the OpenStack class (for OpenStack) and the Rackspace subclass).

See the Release Notes for what has changed in the latest release(s).

See the php-opencloud wiki for incidental notes mostly aimed at developers who are working on the SDK (and not developers working with the SDK).

Downloading

Visit https://github.com/rackspace/php-opencloud/tags to see tagged releases that you can download.

You can download the master branch using the GitHub "ZIP" button, above. However, this has the latest code and may not be as stable as the tagged branches.

Support and Feedback

Your feedback is appreciated! If you have specific problems or bugs with the php-opencloud language bindings, please file an issue via Github.

For general feedback and support requests, send an email to:

[email protected]

Getting Started with OpenStack/Rackspace

To sign up for a Rackspace Cloud account, go to http://www.rackspace.com/cloud and follow the prompts.

If you are working with an OpenStack deployment, you can find more information at http://www.openstack.org.

Requirements

We are not able to test and validate every possible combination of PHP versions and supporting libraries, but here's our recommended minimum version list:

  • PHP 5.3
  • CURL extensions to PHP

Installation

GitHub has deprecated its /downloads directory. Click on the ZIP button on this page to download the entire repository as a .ZIP file.

Move the files in the lib/ directory to a location in your PHP's include_path or, conversely, set the include_path to point to the location of the lib/ files. From within a PHP program, for example, you can use:

ini_set('include_path', './lib:'.ini_get('include_path'));

This prepends the local ./lib directory to the existing include_path value.

If you prefer, you can modify the include_path setting in your php.ini file (usually found in /etc/php.ini or /usr/local/etc/php.ini).

If php.ini has this line:

include_path = "/usr/lib/php:/usr/lib/pear"

then add the lib/ directory to it:

include_path = "/usr/lib/php:/usr/lib/pear:/path/to/php-opencloud/lib"

Further Reading

The file docs/quickref.md contains a Quick Reference guide to the php-opencloud library.

The source for the "Getting Started with php-opencloud" document (the user's guide) starts in docs/userguide/index.md.

There is a complete (auto-generated) API reference manual in the docs/api directory. Start with docs/api/index.html.

See the HOWTO.md file for instructions on regenerating the documentation and running tests.

See the smoketest.php file for some simple, working examples. This is a test we run before builds to ensure that all the core functionality is still working after code changes.

The samples/ directory has a collection of tested, working sample code. Note that these may create objects in your cloud for which you could be charged.

About

php-opencloud is a software development kit (SDK) to help developers using PHP to work with OpenStack and other open clouds. Since the library was developed at Rackspace, it works with the Rackspace public cloud, and should also work with other OpenStack-based clouds with minimal effort.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 88.7%
  • JavaScript 11.1%
  • Shell 0.2%