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

AbandonedArchivedLibrary

dutchcodingcompany/laravel-hetzner-dns-api
==========================================

An unofficial PHP SDK for the Hetzner DNS API.

1.0.1(2y ago)54254MITPHPPHP ^8.1

Since Jun 23Pushed 6mo ago4 watchersCompare

[ Source](https://github.com/DutchCodingCompany/laravel-hetzner-dns-api)[ Packagist](https://packagist.org/packages/dutchcodingcompany/laravel-hetzner-dns-api)[ Docs](https://github.com/dutchcodingcompany/laravel-hetzner-dns-api)[ RSS](/packages/dutchcodingcompany-laravel-hetzner-dns-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (8)Used By (0)

⚠️ Deprecation
==============

[](#️-deprecation)

[Hetzner migrated the DNS api to Hetzner Cloud](https://docs.hetzner.com/networking/dns/migration-to-hetzner-console/process/), therefore this sdk is now obsolete. This repository is left for archival purposes only.

An unofficial PHP SDK for the Hetzner DNS API.
==============================================

[](#an-unofficial-php-sdk-for-the-hetzner-dns-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/119bf18425a1a02765dd3ff4d8e0956c0bea09ce82a1991a0d1702782176f86a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6475746368636f64696e67636f6d70616e792f6c61726176656c2d6865747a6e65722d646e732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/laravel-hetzner-dns-api)[![Total Downloads](https://camo.githubusercontent.com/d8219035b7ba72cfde4ceeef35915a153381135b5a1d2c87c63438baf9f88840/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6475746368636f64696e67636f6d70616e792f6c61726176656c2d6865747a6e65722d646e732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dutchcodingcompany/laravel-hetzner-dns-api)

This PHP/Laravel client around the [Hetzner DNS API](https://dns.hetzner.com/api-docs) support:

- Zones
- Records

This SDK is based on [Saloon](https://docs.saloon.dev/), a Laravel / PHP package that helps write API integrations and SDKs.

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

[](#installation)

You can install the package via composer:

```
composer require dutchcodingcompany/laravel-hetzner-dns-api
```

Set your hetzner dns api token in your .env file:

```
HETZNER_DNS_API_TOKEN=hetzner-dns-token-here
```

Configuration (optional)
------------------------

[](#configuration-optional)

You can publish the config file with:

```
php artisan vendor:publish --tag="hetzner-dns-api-config"
```

This is the contents of the published config file [can be found here](config/hetzner-dns.php).

If you would like to store the API Token outside of the config (e.g. encrypted in the database), you can override the resolver in the `boot` method of the `AppServiceProvider`

```
