2017 © Pedro Peláez
 

library mydnshost-php-api

PHP API for mydnshost.co.uk

image

mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  • Monday, June 11, 2018
  • by ShaneMcC
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

mydnshost-php-api

PHP API for mydnshost.co.uk, (*1)

At the moment this is a very simple library, will composerise this in future and add some kind of cli client wrapper around it., (*2)

This implements version 1.0 of the API as documented at https://api.mydnshost.co.uk/1.0/docs/, (*3)

Installation is via composer require mydnshost/mydnshost-php-api, (*4)

Example usage, listing domains:, (*5)

  require_once(__DIR__ . '/vendor/autoload.php');
  $api = new MyDNSHostAPI($config['api']);
  $api->setAuthUserKey('admin@example.org', 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE');

  $domains = $api->getDomains();
  var_dump($domains);

Example usage, importing zone files:, (*6)

  require_once(__DIR__ . '/vendor/autoload.php');
  $api = new MyDNSHostAPI($config['api']);
  $api->setAuthUserKey('admin@example.org', 'AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE');

  $domain = 'test.com';
  $zonedata = file_get_contents('test.com.db');

  echo 'Importing Domain: ', $domain, "\n";

  $result = $api->importZone($domain, $zonedata);
  if (isset($result['error'])) {
    echo 'Unable to import: ', $result['error'];
    if (isset($result['errorData'])) {
      echo ' :: ', $result['errorData'];
    }
    echo "\n"
    continue;
  } else {
    echo 'Success!', "\n";
  }

The Versions

11/06 2018

dev-master

9999999-dev https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

26/11 2017

0.4

0.4.0.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

24/09 2017

0.1.7

0.1.7.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

24/09 2017

0.1.6

0.1.6.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

11/09 2017

0.1.5

0.1.5.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

11/09 2017

0.1.4

0.1.4.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

10/09 2017

0.1.3

0.1.3.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

10/09 2017

0.1.2

0.1.2.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

05/06 2017

0.1.1

0.1.1.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires

 

19/05 2017

0.1

0.1.0.0 https://github.com/mydnshost/mydnshost-php-api

PHP API for mydnshost.co.uk

  Sources   Download

MIT

The Requires