Get composer to your project folder:
$ curl -s https://getcomposer.org/installer | phpCreate 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<?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);
}
?>