2017 © Pedro Peláez
 

library cac-api

PHP wrapper for the cloudatcost API's

image

fdisotto/cac-api

PHP wrapper for the cloudatcost API's

  • Tuesday, April 21, 2015
  • by fdisotto
  • Repository
  • 2 Watchers
  • 6 Stars
  • 75 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

cac-api

PHP wrapper for the cloudatcost's API, (*1)

References

https://github.com/cloudatcost/api, (*2)

Install

Via Composer, (*3)

$ composer require fdisotto/cac-api

Requires PHP 5.3.0 or newer and cURL lib installed., (*4)

Usage

$cac = new \fdisotto\CACApi(array(
    'key' => 'YourApiKey',
    'login' => 'YourLoginEmail'
));

Actions

List servers

print_r($cac->getServers());

List templates

print_r($cac->getTemplates());

List tasks

print_r($cac->getTasks());

Power ON server

$cac->powerOnServer($serverID);

Power OFF server

$cac->powerOffServer($serverID);

Reset server

$cac->resetServer($serverID);

Console url

$cac->getConsoleUrl($serverID);

Rename server

$cac->renameServer($serverID, $newName);

Modify reverse DNS

$cac->reverseDNS($serverID, $hostname);

Run Mode

$cac->runMode($serverID, $runmode);

Update

v1.0.4

  • Added Run mode function

v1.0.3

  • Added Rename server function
  • Added Modify reverse DNS function
  • Updated tests

v1.0.1

  • Added tests
  • Added example
  • Extends curl class, now you can use all public methods and properties of this lib (ex: http_status_code, etc.)
  • Some fixes

Credits

License

The MIT License (MIT). Please see License File for more information., (*5)

The Versions

21/04 2015

dev-master

9999999-dev https://github.com/fdisotto/cac-api

PHP wrapper for the cloudatcost API's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabio Di Sotto

21/04 2015

1.0.4

1.0.4.0 https://github.com/fdisotto/cac-api

PHP wrapper for the cloudatcost API's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabio Di Sotto

09/04 2015

1.0.3

1.0.3.0 https://github.com/fdisotto/cac-api

PHP wrapper for the cloudatcost API's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabio Di Sotto

18/03 2015

1.0.2

1.0.2.0 https://github.com/fdisotto/cac-api

PHP wrapper for the cloudatcost API's

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabio Di Sotto

17/03 2015

1.0.0

1.0.0.0

PHP wrapper for the cloudatcost.com API

  Sources   Download

MIT

The Requires

 

by Fabio Di Sotto