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

ActiveLibrary[API Development](/categories/api)

mehr-it/hetzner-dns-api
=======================

Unofficial PHP client for the Hetzner DNS API

0.8.1(4y ago)5486[2 issues](https://github.com/mehr-it/hetzner-dns-api/issues)[1 PRs](https://github.com/mehr-it/hetzner-dns-api/pulls)proprietaryPHPPHP ^7.1CI failing

Since Jun 9Pushed 2y agoCompare

[ Source](https://github.com/mehr-it/hetzner-dns-api)[ Packagist](https://packagist.org/packages/mehr-it/hetzner-dns-api)[ RSS](/packages/mehr-it-hetzner-dns-api/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (3)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.

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

21

—

LowBetter than 19% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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 ~345 days

Total

2

Last Release

1816d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44973729?v=4)[mehr.IT GmbH](/maintainers/mehr-it)[@mehr-it](https://github.com/mehr-it)

---

Tags

apiclientdnshetzner

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/mehr-it-hetzner-dns-api/health.svg)](https://phpackages.com/packages/mehr-it-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)
