fdisotto/cac-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fdisotto/cac-api

最新稳定版本:1.0.4

Composer 安装命令:

composer require fdisotto/cac-api

包简介

PHP wrapper for the cloudatcost API's

README 文档

README

PHP wrapper for the cloudatcost's API

References

https://github.com/cloudatcost/api

Install

Via Composer

$ composer require fdisotto/cac-api

Requires PHP 5.3.0 or newer and cURL lib installed.

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.

统计信息

  • 总下载量: 79
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-17