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

ActiveLibrary[API Development](/categories/api)

ghostcompiler/hetzner-robot
===========================

Hetzner Robot (Dedicated) Webservice PHP SDK

1.0.0(1mo ago)00MITPHPPHP &gt;=8.1

Since Apr 5Pushed 1mo agoCompare

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

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

Hetzner Robot Webservice — PHP client (cURL)
============================================

[](#hetzner-robot-webservice--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 Robot Webservice](https://robot.hetzner.com/doc/webservice/en.html) (dedicated servers, Storage Box, ordering, etc.). HTTP uses **PHP’s `curl` extension only** (no PECL `http`, no Guzzle, no stream wrappers).

Authentication is **HTTP Basic Auth** (Robot “web service user” + password). **POST** and **PUT** parameters are sent as **`application/x-www-form-urlencoded`**, as required by the official API.

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

[](#architecture-diagram)

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

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

[](#requirements)

- PHP **8.1+** (including current **8.5+** releases).
- Extensions: **`curl`**, **`json`**

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

[](#installation)

```
composer require ghostcompiler/hetzner-robot
```

Or add a path repository for local development:

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

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

[](#quick-start)

```
