rumd3x/cloudcone-sdk
Composer 安装命令:
composer require rumd3x/cloudcone-sdk
包简介
Unofficial Cloudcone PHP SDK
README 文档
README
Unofficial Cloudcone PHP SDK
Install
composer require rumd3x/cloudcone-sdk
Examples
Listing my instances
require 'vendor/autoload.php'; use Rumd3x\CloudCone\Api\V1\Compute; $compute = new Compute('Api-Key-Here', 'App-Hash-Here'); $instances = $compute->getInstances(); // Returns an iterable collection with your instances echo $instances->count(); // Display number of instances $firstInstance = $instances->first(); // Retrieves first instance on collection $allInstances = $instances->all(); // Retrieves all instances $instancesOnH15 = $instances->where('nomename', '=', 'H15')->all(); // Retrieves all instances on Node H15 $instancesArray = $instances->toArray(); // Converts the collection to array
Todo
- Dedicated Servers API
- Docs
- Unit Tests
- CI
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-31