HPCloud-PHP library for PHP

See below for the howto information. This Libary was used by Stefan Koopmanschap for his September 2013 case study for the international magazine PHParchintect. In this case study Stefan used the CloudVPS Object Store to build a program with basic Wetransfer functionality.

Configuration

$username = "your_username";
$password = "your_password";
$project = "0123456789abcdef0123456789abcdef";
$auth_endpoint = "https://identity.stack.cloudvps.com/v2.0/";
$auth_service = new HPCloud\Services\IdentityServices($auth_endpoint);

Contact the identity service
$auth_token = $auth_service->authenticateAsUser($username, $password, $project);
Find the object store from the identity service

$catalog = $auth_service->serviceCatalog();
$store = HPCloud\Storage\ObjectStorage::newFromServiceCatalog($catalog, $auth_token, 'NL');

Proof of concept: list all containers
foreach($store->containers() as $container) {
    echo $container->name() . " <br>\n";
}

 

Helpcenter

General FAQ

Show all FAQs

OpenStack FAQ

Show all FAQs

Knowledgebase

Show all FAQs