Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP library for the cloudControl API
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
CloudControl
.gitignore
LICENSE
NOTICE
README.md
composer.json

README.md

Readme

Install With Composer:

Get composer to your project folder:

$ curl -s https://getcomposer.org/installer | php

Create a file composer.json with:

{
    "require": {
        "cloudcontrol/phpcclib": "dev-master"
    },
    "repositories": [
        {
            "type": "pear",
            "url": "http://pear.php.net"
        }
    ]
}

Run in your project folder:

$ ./composer.phar install

Usage Example:

<?php
require 'vendor/autoload.php';
use CloudControl\API;

$api = new Api();
$email = 'your@example.com';
$password = 's€cr€t';
$api->auth($email, $password);

foreach($api->application_getList() as $app){
    printf("%s (%s)%s", $app->name, $app->type->name, PHP_EOL);
}
?>
Something went wrong with that request. Please try again.