cloudcontrol/phpcclib

cloudControl api helper

Installs: 466

Dependents: 0

Stars: 7

Watchers: 12

Forks: 3

Open Issues: 2

Language: PHP

v0.1.6 2014-07-14 16:13 UTC

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);
}
?>