morningtrain/hcloud-php
最新稳定版本:v1.2.0
Composer 安装命令:
composer require morningtrain/hcloud-php
包简介
PHP library for the Hetzner Cloud API
README 文档
README
Installation: Composer
You can install this library via Composer. Run the following command:
composer require exploriment/hcloud-php
Documentation and examples
Full technical documentation can be found in DOCUMENTATION.md. The more user-friendly documentation can be found in the wiki.
HetznerCloud
<?php use Exploriment\HetznerCloud; /** * set your API token like this and you are ready to * make API calls using this library! */ HetznerCloud\HetznerCloud::setToken('my_token_here'); // retrieve the pricing object $pricing = HetznerCloud\HetznerCloud::getPricing(); /** * retrieve the rate limit status, returns the following: * * object(stdClass)#1 (3) { * ["limit"]=> * int(0) * ["remaining"]=> * int(0) * ["reset"]=> * int(1517655111) * } * * values of these will be `null` if no requests to the API were made */ $rateLimit = HetznerCloud\HetznerCloud::getRateLimit();
Prerequisites and dependencies
- PHP 5.6.4 or higher
- ext-mbstring
- ext-json
- ext-curl (recommended)
- Laravel Collections
- GuzzlePHP
License
MIT
统计信息
- 总下载量: 273
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-29