PHPackages                             lkdevelopment/hetzner-cloud-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. lkdevelopment/hetzner-cloud-php-sdk

ActiveLibrary[API Development](/categories/api)

lkdevelopment/hetzner-cloud-php-sdk
===================================

An unofficial PHP SDK for the Hetzner Cloud API.

v3.1.0(2w ago)131103.1k↓16.2%63[13 issues](https://github.com/LKDevelopment/hetzner-cloud-php-sdk/issues)[7 PRs](https://github.com/LKDevelopment/hetzner-cloud-php-sdk/pulls)1MITPHPPHP ^8.2CI passing

Since Jan 29Pushed 2w ago4 watchersCompare

[ Source](https://github.com/LKDevelopment/hetzner-cloud-php-sdk)[ Packagist](https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk)[ RSS](/packages/lkdevelopment-hetzner-cloud-php-sdk/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (13)Versions (62)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/a1b6b67c65d425f295e51655bb9de21368e3a6e5c9de2dc0a28aef97bfedebe6/68747470733a2f2f706f7365722e707567782e6f72672f6c6b646576656c6f706d656e742f6865747a6e65722d636c6f75642d7068702d73646b2f76657273696f6e)](https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk)[![License](https://camo.githubusercontent.com/9396d05acf39f6737ff31ce23bfb51be1f844616e3daeaea301119f132f98e11/68747470733a2f2f706f7365722e707567782e6f72672f6c6b646576656c6f706d656e742f6865747a6e65722d636c6f75642d7068702d73646b2f6c6963656e7365)](https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk)[![Total Downloads](https://camo.githubusercontent.com/58734645037cfb99b35f8112deb901ecea897428522cc40b1fdb2e68ab88e1a2/68747470733a2f2f706f7365722e707567782e6f72672f6c6b646576656c6f706d656e742f6865747a6e65722d636c6f75642d7068702d73646b2f646f776e6c6f616473)](https://packagist.org/packages/lkdevelopment/hetzner-cloud-php-sdk)[![Actions Status](https://github.com/lkdevelopment/hetzner-cloud-php-sdk/workflows/CI/badge.svg)](https://github.com/lkdevelopment/hetzner-cloud-php-sdk/actions)

Hetzner Cloud PHP SDK
=====================

[](#hetzner-cloud-php-sdk)

A PHP SDK for both [Hetzner Cloud API](https://docs.hetzner.cloud/reference/cloud) and [Hetzner API](https://docs.hetzner.cloud/reference/hetzner)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require lkdevelopment/hetzner-cloud-php-sdk
```

Usage
-----

[](#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

[](#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

[](#old-releases-v1x)

[Version 1.x](https://github.com/LKDevelopment/hetzner-cloud-php-sdk/tree/v1) 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

[](#testing)

You can just run `phpunit`. The whole library is based on unit tests and sample responses from the official Hetzner Cloud documentation.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Upgrade Guide

[](#upgrade-guide)

Please see [Upgrade to v3.0](UPGRADE-3.0.md) for more information how to upgrade from v2.x.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Lukas Kämmerling](https://github.com/lkaemmerling)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance94

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~53 days

Recently: every ~60 days

Total

58

Last Release

17d ago

Major Versions

v0.0.12 → v1.0.02018-08-09

v1.x-dev → v2.0.0-alpha.12019-12-05

v2.9.1 → 3.0.0.x-dev2026-03-18

PHP version history (5 changes)v0.0.1PHP &gt;=7.0.0

v2.2.1PHP &gt;=7.1.0

v2.3.0PHP ^7.1|^8.0

v2.8.0PHP ^8.1

3.0.0.x-devPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcc754aa9c84b502f0fade69790c525a42e8e898447157acce899469038bb3b1?d=identicon)[LukasKaemmerling](/maintainers/LukasKaemmerling)

---

Top Contributors

[![LKaemmerling](https://avatars.githubusercontent.com/u/4281581?v=4)](https://github.com/LKaemmerling "LKaemmerling (194 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (20 commits)")[![cosmohdx](https://avatars.githubusercontent.com/u/1498099?v=4)](https://github.com/cosmohdx "cosmohdx (12 commits)")[![BenjaminLeibinger](https://avatars.githubusercontent.com/u/15154967?v=4)](https://github.com/BenjaminLeibinger "BenjaminLeibinger (6 commits)")[![ayacoo](https://avatars.githubusercontent.com/u/5963331?v=4)](https://github.com/ayacoo "ayacoo (4 commits)")[![ThomasLandauer](https://avatars.githubusercontent.com/u/1054469?v=4)](https://github.com/ThomasLandauer "ThomasLandauer (4 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")[![jmjmjm](https://avatars.githubusercontent.com/u/7957056?v=4)](https://github.com/jmjmjm "jmjmjm (2 commits)")[![osthafen](https://avatars.githubusercontent.com/u/525826?v=4)](https://github.com/osthafen "osthafen (2 commits)")[![DanielWiedemann248](https://avatars.githubusercontent.com/u/73703781?v=4)](https://github.com/DanielWiedemann248 "DanielWiedemann248 (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![swznd](https://avatars.githubusercontent.com/u/766961?v=4)](https://github.com/swznd "swznd (1 commits)")[![tanji](https://avatars.githubusercontent.com/u/971260?v=4)](https://github.com/tanji "tanji (1 commits)")[![teyeheimans](https://avatars.githubusercontent.com/u/21109255?v=4)](https://github.com/teyeheimans "teyeheimans (1 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (1 commits)")[![vvolv](https://avatars.githubusercontent.com/u/2045557?v=4)](https://github.com/vvolv "vvolv (1 commits)")[![Floppy012](https://avatars.githubusercontent.com/u/7030787?v=4)](https://github.com/Floppy012 "Floppy012 (1 commits)")[![geisi](https://avatars.githubusercontent.com/u/10728579?v=4)](https://github.com/geisi "geisi (1 commits)")[![jappi00](https://avatars.githubusercontent.com/u/13003175?v=4)](https://github.com/jappi00 "jappi00 (1 commits)")[![Jubeki](https://avatars.githubusercontent.com/u/15707543?v=4)](https://github.com/Jubeki "Jubeki (1 commits)")

---

Tags

cloudhacktoberfesthcloudphp-sdkhetznerhetzner cloudhcloudcloud php library

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lkdevelopment-hetzner-cloud-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/lkdevelopment-hetzner-cloud-php-sdk/health.svg)](https://phpackages.com/packages/lkdevelopment-hetzner-cloud-php-sdk)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1943.1k5](/packages/aimeos-prisma)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
