axute / hetzner-cloud-php-sdk
An unofficial PHP SDK for the Hetzner Cloud API.
v3.0.0
2025-04-19 17:20 UTC
Requires
- php: ^8.3
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- illuminate/collections: ^5.5|^v6.18|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- phpstan/phpstan: ^0.12.43 || ^1.0.0
- phpunit/phpunit: ^7.0|^8.5.5|^9.0
- dev-master
- v3.0.0
- v2.8.0
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- v2.0.0-alpha.1
- v1.x-dev
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- 0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-feature/46-load-balancer-support
- dev-improve-server-typeing
This package is auto-updated.
Last update: 2025-06-19 21:17:14 UTC
README
Hetzner Cloud PHP (8.3+) SDK
A PHP (8.3+) SDK for the Hetzner Cloud API: https://docs.hetzner.cloud/
Installation
You can install the package via composer:
composer require axute/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; }
PHP Support
It is tested on PHP Versions 8.3 and 8.4.
Testing
You can just run phpunit
. The whole library is based on unit tests and sample responses from the official Hetzner Cloud documentation.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please use the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.