2017 © Pedro Peláez
 

library dns-made-easy

PHP wrapper for the Dns Made Easy API.

image

a1extran/dns-made-easy

PHP wrapper for the Dns Made Easy API.

  • Saturday, March 7, 2015
  • by byalextran
  • Repository
  • 7 Watchers
  • 17 Stars
  • 185 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Example Usage

Create an instance of the DnsMadeEasy class

// log into your DNS Made Easy account to generate/obtain your API key and secret key.
// specify TRUE for the last parameter if you want to make test API calls.
$dme = new DnsMadeEasy('yourApiKey', 'yourSecretKey', TRUE);

Adding a domain

$result = $dme->domains->add('foobar.com');

if ($errors = $result->errors()) {
    print_r($errors);
}
else {
    // outputs the raw results
    print_r($result->rawBody());

    // grab the JSON decoded results.
    // use TRUE to return an associative array, FALSE to return an object.
    $domain = $result->body(FALSE);

    // output the name servers associated with this domain.
    print_r($domain->nameServer);
}

Adding a DNS record

$record = array(
    'name' => '',
    'type' => 'A',
    'data' => '2.4.8.16',
    'ttl' => 1800,
);

$result = $dme->records->add('foobar.com', $record);

if ($errors = $result->errors()) {
    print_r($errors);
}
else {
    // grab the JSON decoded results.
    // use TRUE to return an associative array, FALSE to return an object.
    $record = $result->body(FALSE);

    // output the assigned record ID
    print_r($record->id);
}

The Versions

07/03 2015

dev-master

9999999-dev http://github.com/byalextran/DnsMadeEasy

PHP wrapper for the Dns Made Easy API.

  Sources   Download

The Requires

  • php >=5.3.0

 

07/03 2015

1.1.1

1.1.1.0 http://github.com/byalextran/DnsMadeEasy

PHP wrapper for the Dns Made Easy API.

  Sources   Download

The Requires

  • php >=5.3.0

 

22/09 2012

1.1.0

1.1.0.0 http://github.com/a1extran/DnsMadeEasy

PHP wrapper for the Dns Made Easy API.

  Sources   Download

The Requires

  • php >=5.3.0

 

28/08 2012

1.0.3

1.0.3.0 http://github.com/a1extran/DnsMadeEasy

PHP wrapper for the Dns Made Easy API.

  Sources   Download

The Requires

  • php >=5.3.0

 

28/08 2012

1.0.2

1.0.2.0 http://github.com/a1extran/DnsMadeEasy

PHP wrapper for the Dns Made Easy API.

  Sources   Download

The Requires

  • php >=5.3.0