Skip to content

remenic/hetzner-cloud-php-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Latest Stable Version License Total Downloads Build Status

Hetzner Cloud PHP SDK

A PHP SDK for the Hetzner Cloud API: https://docs.hetzner.cloud/

Installation

You can install the package via composer:

composer require lkdevelopment/hetzner-cloud-php-sdk

Usage

$hetznerClient = new \LKDev\HetznerCloud\HetznerAPIClient($apiKey);
foreach ($hetznerClient->servers()->all() as $server) {
    echo 'ID: '.$server->id.' Name:'.$server->name.' Status: '.$server->status.PHP_EOL;
}

Testing

We use the Hetzner Cloud API Mock Server for testing against the API. For testing run the commands:

docker run -d -p 127.0.0.1:4000:8080 lkdevelopment/hetzner-cloud-api-mock
phpunit

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A PHP SDK for the Hetzner Cloud API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%