Skip to content

cloudControl/phpcclib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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