cloudcontrol/phpcclib

cloudControl api helper

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

This package is not auto-updated.

Last update: 2024-12-15 04:10:19 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);
}
?>