cloudcontrol / phpcclib
cloudControl api helper
v0.1.6
2014-07-14 16:13 UTC
Requires
- pear-pear.php.net/http_request2: 2.2.1
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); } ?>