PHPackages                             tiggee/dnsmadeeasy-client - 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. tiggee/dnsmadeeasy-client

ActiveLibrary

tiggee/dnsmadeeasy-client
=========================

PHP SDK for the DNS Made Easy API

v1.0.0(5y ago)1662[1 issues](https://github.com/DNSMadeEasy/dme-php-sdk/issues)[3 PRs](https://github.com/DNSMadeEasy/dme-php-sdk/pulls)MITPHPPHP ^7.4

Since Dec 3Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DNSMadeEasy/dme-php-sdk)[ Packagist](https://packagist.org/packages/tiggee/dnsmadeeasy-client)[ RSS](/packages/tiggee-dnsmadeeasy-client/feed)WikiDiscussions develop Synced 1w ago

READMEChangelog (1)Dependencies (13)Versions (3)Used By (0)

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

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

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)
- [License](#license)

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 tiggee/dnsmadeeasy-client
```

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).

If you are using Composer, you should be running Composer's autoload to load libraries:

```
require_once 'vendor/_autoload.php';
```

With the libraries loaded, 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.

```
