-
Notifications
You must be signed in to change notification settings - Fork 8
Home
Danny Li edited this page Feb 4, 2018
·
3 revisions
You can install this library via Composer. Run the following command:
composer require exploriment/hcloud-php
Full technical documentation can be found in DOCUMENTATION.md
. The more user-friendly documentation can be found in the wiki.
<?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();
- PHP 5.6.4 or higher
- ext-mbstring
- ext-json
- ext-curl (recommended)
- Laravel Collections
- GuzzlePHP
MIT
by Exploriment.io
- README.md
-
Resources introduction
- Actions
-
Servers
::findAction
::create
::getMetrics
::rename
::start
-
::powerOn
(alias) ::reboot
-
::restart
(alias) ::reset
::shutdown
-
::stop
(alias) ::powerOff
::resetPassword
::enableRescue
::disableRescue
::createImage
::rebuild
::changeType
::enableBackups
::disableBackups
::attachIso
::detachIso
::changeDnsPtr
::changeProtection
::requestConsole
::delete
- FloatingIps
- SshKeys
- ServerTypes
- Locations
- Datacenters
- Images
- ISOs