PHPackages                             sandwave-io/dns-made-easy - 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. sandwave-io/dns-made-easy

AbandonedArchivedLibrary[API Development](/categories/api)

sandwave-io/dns-made-easy
=========================

PHP SDK for the DNS Made Easy API

0.2.1(3y ago)32.1k3MITPHPPHP ^8.1

Since Mar 18Pushed 1y ago6 watchersCompare

[ Source](https://github.com/sandwave-io/dme-sdk-php)[ Packagist](https://packagist.org/packages/sandwave-io/dns-made-easy)[ RSS](/packages/sandwave-io-dns-made-easy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (15)Versions (11)Used By (0)

[![](https://user-images.githubusercontent.com/60096509/91668964-54ecd500-eb11-11ea-9c35-e8f0b20b277a.png)](https://sandwave.io)

DNS Made Easy PHP Client Library
================================

[](#dns-made-easy-php-client-library)

[![Codecov](https://camo.githubusercontent.com/3362b09689a7a796f050faa76e84750b06238303f6695fc1f2a73ac78e25b513/68747470733a2f2f636f6465636f762e696f2f67682f73616e64776176652d696f2f646d652d73646b2d7068702f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d43445436304f384f3033)](https://app.codecov.io/gh/sandwave-io/dme-sdk-php)[![GitHub Workflow Status](https://camo.githubusercontent.com/e2e0666c45bfd388172865ba7de69450de879429b3e451d255c33ebbbb89710a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73616e64776176652d696f2f646d652d73646b2d7068702f746573742e796d6c3f6272616e63683d6d61696e)](https://github.com/sandwave-io/dme-sdk-php/actions)[![Packagist PHP Version Support](https://camo.githubusercontent.com/ddde6928a4c97424a5618cd2ad29d46e95336b92831422cbf6e084fdae0e68d9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73616e64776176652d696f2f646e732d6d6164652d65617379)](https://packagist.org/packages/sandwave-io/dns-made-easy)[![Packagist PHP Version Support](https://camo.githubusercontent.com/1ab6583c9b85fd662e37359a72649d7ee75b83a1583a33c6d8ee1219c7790ef0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616e64776176652d696f2f646e732d6d6164652d65617379)](https://packagist.org/packages/sandwave-io/dns-made-easy)[![Packagist Downloads](https://camo.githubusercontent.com/b0ed5b79806487cafeaac839819ea311bdbbecab2dac934e6ea8f077633f3755/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616e64776176652d696f2f646e732d6d6164652d65617379)](https://packagist.org/packages/sandwave-io/dns-made-easy)

This package is a fork from the original [DNSMadeEasy/dme-php-sdk](https://github.com/DNSMadeEasy/dme-php-sdk).

This is an API client library for the [DNS Made Easy](https://www.dnsmadeeasy.com) API.

More information about the API may be found in the [official API documentation](https://api-docs.dnsmadeeasy.com/).

- [Installation](#installation)
- [Usage](#usage)
- [Examples](#examples)

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

[](#installation)

The easiest way to install and use this client library is using Composer. The following command will add the library to your application and install it from Packagist.

```
composer require sandwave-io/dns-made-easy
```

Getting Started
---------------

[](#getting-started)

You will need a DNS Made Easy account and API credentials. You can get an account at the [DNS Made Easy website](https://www.dnsmadeeasy.com). There is an API sandbox available, you can create a [new account here](https://sandbox.dnsmadeeasy.com/account/new).

With the package installed through composer, you just need to create the client and set the API key and secret key.

```
$client = new \DnsMadeEasy\Client;
$client->setApiKey(API_KEY);
$client->setSecretKey(SECRET_KEY);
```

You may now use the client to query the API retrieve objects. Usage is documented in GitHub in the docs directory.

### Using the Sandbox

[](#using-the-sandbox)

You can tell the client to use the sandbox API endpoint by using the `setEndpoint` method:

```
$client->setEndpoint('https://api.sandbox.dnsmadeeasy.com/V2.0');
```

### Putting it all together

[](#putting-it-all-together)

Putting this together, it's time for the API equivalent of Hello World. Let's get a list of your domains.

```
