Skip to content

Latest commit

 

History

History
47 lines (41 loc) · 785 Bytes

README.md

File metadata and controls

47 lines (41 loc) · 785 Bytes

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 = '[email protected]';
$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);
}
?>