PHPackages                             xosofox/hetzner-dns-api - 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. xosofox/hetzner-dns-api

ActiveLibrary[API Development](/categories/api)

xosofox/hetzner-dns-api
=======================

Unofficial PHP client for the Hetzner DNS API

1.0.0(1y ago)02proprietaryPHPPHP ^7.1|^8.0

Since Jan 10Pushed 1y agoCompare

[ Source](https://github.com/xosofox/hetzner-dns-api)[ Packagist](https://packagist.org/packages/xosofox/hetzner-dns-api)[ RSS](/packages/xosofox-hetzner-dns-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Hetzner DNS API client
======================

[](#hetzner-dns-api-client)

This library implements an unofficial but complete PHP client for the Hetzner Public DNS API.

Comment by Peter: Why this fork?
--------------------------------

[](#comment-by-peter-why-this-fork)

The original  repo seems to be stale. But I like the work that has been done. So I updated it to work for my personal use-cases. --- continue original README ---

Why a proprietary license?
--------------------------

[](#why-a-proprietary-license)

Since Hetzner responded with no interest in supporting the development of a PHP DNS API client library, we do not want to bear the development costs for the integration of their products alone. We are willing to share this package under MIT license, if the there is some kind of participation...

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

[](#installation)

You should use composer to install this library:

```
composer require mehr-it/hetzner-dns-api

```

Usage
-----

[](#usage)

Following example demonstrates the creation of a new DNS record. See the [official API docs](https://dns.hetzner.com/api-docs/) for a full list of operations. The corresponding methods and parameters of the client class are named similar as in the documentation.

```
$apiToken = '...'; // see https://dns.hetzner.com/settings/api-token to generate one

// create a client instance
$client = new HetznerDnsClient($apiToken);

// retrieve ID of the target zone
$zoneId = $client->getZoneByName('mytestzone.de')->getZones()[0]->getId();

// create new record
$response = $client->createRecord(
    (new Record())
        ->zoneId($zoneId)
        ->ttl(900)
        ->type(Record::TYPE_A)
        ->value('8.8.8.8')
        ->name('www')
);

$recordId = $response->getRecord()->getId();

```

Known issues
------------

[](#known-issues)

The Hetzner DNS API has some bugs. The bugs have been reported but yet not fixed for several months. The following functions are affected:

- getAllRecords (pagination seams not to work correctly)
- bulkUpdateRecords
- validateZoneFilePlain (valid records are not returned)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance43

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

484d ago

### Community

Maintainers

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

---

Top Contributors

[![xosofox](https://avatars.githubusercontent.com/u/206212?v=4)](https://github.com/xosofox "xosofox (3 commits)")

---

Tags

apiclientdnshetzner

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xosofox-hetzner-dns-api/health.svg)

```
[![Health](https://phpackages.com/badges/xosofox-hetzner-dns-api/health.svg)](https://phpackages.com/packages/xosofox-hetzner-dns-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[crowdin/crowdin-api-client

PHP client library for Crowdin API v2

611.5M5](/packages/crowdin-crowdin-api-client)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[markrogoyski/numverify-api-client-php

Numverify API Client for PHP

1220.9k](/packages/markrogoyski-numverify-api-client-php)

PHPackages © 2026

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