php-openclouds library for PHP

php-openclouds is an openstack client library for PHP. The CloudVPS Object Store can be accessed using its OpenStack driver as follows:

<?php
require_once "vendor/autoload.php";

// establish our credentials
$connection = new \OpenCloud\OpenStack(
    "http://identity.stack.cloudvps.com/v2.0/",
    array('username' => "your username",
          'password' => "your password",
          'tenantName' => "your project id")
);

// create an ObjectStore connection.
$ostore = $connection->objectStoreService("swift", "NL", "publicURL");

// next, make a container named DEMO
$ostore->CreateContainer("DEMOs");

// now, list containers to show the container was actually created.
foreach( $ostore->listContainers() as $container ) {
    echo $container->name, "\n";
}

Helpcenter

General FAQ

Show all FAQs

OpenStack FAQ

Show all FAQs

Knowledgebase

Show all FAQs