PHPackages                             ghostcompiler/hetzner-cloud - 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. ghostcompiler/hetzner-cloud

ActiveLibrary

ghostcompiler/hetzner-cloud
===========================

Hetzner Cloud PHP SDK

1.0.0(1mo ago)01↑2900%MITPHPPHP &gt;=8.1

Since Apr 5Pushed 1mo agoCompare

[ Source](https://github.com/ghostcompiler/hetzner-cloud)[ Packagist](https://packagist.org/packages/ghostcompiler/hetzner-cloud)[ RSS](/packages/ghostcompiler-hetzner-cloud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Hetzner Cloud API — PHP client (cURL)
=====================================

[](#hetzner-cloud-api--php-client-curl)

[![PHP >=8.1](https://camo.githubusercontent.com/69ada8118f91b7cbf415af2f0d9f7a21ad3fe896d8dad3109d8b3d7c6c275941/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d373737626234)](https://www.php.net/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)

PHP library for the [Hetzner Cloud API](https://docs.hetzner.cloud/reference/cloud). HTTP is done with **PHP’s `curl` extension only** (no PECL `http`, no Guzzle, no stream wrappers), so you avoid common extension clashes across PHP installs.

Official OpenAPI description: [cloud.spec.json](https://docs.hetzner.cloud/cloud.spec.json).

Architecture diagram
--------------------

[](#architecture-diagram)

[![Request flow from your app through HetznerClient to the API](docs/architecture.svg)](docs/architecture.svg)

Requirements
------------

[](#requirements)

- PHP **8.1+** (works on current releases including **8.5+**). **PHP 7.4 and PHP 8.0 are not supported** — the library uses PHP 8.1 syntax (`readonly` properties, constructor property promotion, union types, and similar).
- Extensions: **`curl`**, **`json`**

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

[](#installation)

```
composer require ghostcompiler/hetzner-cloud
```

Or add the path repository if you develop locally:

```
{
  "repositories": [{ "type": "path", "url": "../hetzner" }],
  "require": { "ghostcompiler/hetzner-cloud": "*" }
}
```

Quick start
-----------

[](#quick-start)

```
