bschleyer/php-api-sdk
最新稳定版本:1.1
Composer 安装命令:
composer require bschleyer/php-api-sdk
包简介
An unofficial PHP SDK for the dashserv REST-API
README 文档
README
The official PHP SDK for the dashserv API to order, manage and cancel products: https://docs.dashserv.io/
Installation
Install the package using composer:
composer require dashserv/php-api-sdk
Usage
$dsClient = new dashservApiClient("5srzVAPT0Kz0CME0Y5GTOfha4TKDC1rD"); foreach ($dsClient->vServer()->list()->getData() as $vserverItem) { // UUID: dIjw5 - Name: test (2 Kerne, 4 GB RAM, 60 GB SSD) echo "UUID: {$vserverItem->uuid} - Name: {$vserverItem->name} ({$vserverItem->options->cores} Kerne, {$vserverItem->options->ram} GB RAM, {$vserverItem->options->disk} GB SSD)\n"; }
Take a look on more examples for each product and many use cases in the examples directory.
LICENSE:
This software is distributed under the MIT license.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-23