lkdevelopment / hetzner-cloud-php-sdk
A inofficial PHP SDK for the Hetzner Cloud API.
Installs: 50 834
Dependents: 1
Suggesters: 0
Security: 0
Stars: 108
Watchers: 6
Forks: 52
Open Issues: 18
Requires
- php: ^7.1|^8.0
- ext-json: *
- guzzlehttp/guzzle: ^6.3|^7.0
- illuminate/collections: ^5.5|^v6.18|^7.0|^8.0|^11.0
Requires (Dev)
- phpstan/phpstan: ^0.12.43
- phpunit/phpunit: ^7.0|^8.5.5|^9.0
- dev-master
- 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-dependabot/composer/phpstan/phpstan-tw-0.12.43or-tw-1.0.0
- dev-improve-server-typeing
This package is auto-updated.
Last update: 2024-10-14 08:42:33 UTC
README
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; }
Old Releases: v1.x
Version 1.x is abandoned and will not receive any new updates or features. V2 was created with Backward Compatibility in mind. So it should work as a drop-in replacement. Therefor it does not give a "Migration to v2"-Guide. It should just work!
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 email kontakt@lukas-kaemmerling.de instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.