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