eugenecooper/hetzner-cloud-php-sdk
Composer 安装命令:
composer require eugenecooper/hetzner-cloud-php-sdk
包简介
An unofficial PHP SDK for the Hetzner Cloud API.
README 文档
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; }
PHP Support
We test on all supported PHP Versions. The library can still work on older versions, however it is no longer actively tested.
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.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-13