2017 © Pedro Peláez
 

library quickdns

QuickDNS library

image

kasperhartwich/quickdns

QuickDNS library

  • Wednesday, April 26, 2017
  • by kasperh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 8 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

QuickDNS

Latest Version on Packagist, (*1)

For how to use, take a look at the tests for now. This is work-in-progress., (*2)

Requirements

  • PHP 8.2 or later

Installation

You can install the package via composer:, (*3)

``` bash composer require kasperhartwich/quickdns, (*4)


### Example This example creates multiple domains with the same template. ```php <?php include "vendor/autoload.php"; $quickDns = new \QuickDns\QuickDns('my@email.example','password'); $domains = <<<EOD domain1.dk domain2.dk domain3.dk EOD; $template = $quickDns->getTemplate('my-template'); $domains = explode(PHP_EOL, $domains); foreach ($domains as $domain) { $zone = new \QuickDns\Zone($quickDns, $domain); $zone->create(); echo $zone->domain . ' created' . PHP_EOL; $zone = $quickDns->getZone($domain); $template->addZone($zone); echo $zone->domain . ' added to template ' . $template->name . PHP_EOL; } echo 'Done' . PHP_EOL;

Testing

To test, you need to specify email and password for a account at QuickDNS as environment variables. You can do so by setting the variables in phpunit.xml file., (*5)

License

Licensed under MIT License., (*6)

Contribute

You are more than welcome to contribute. Just create a pull request., (*7)

The Versions

26/04 2017

dev-master

9999999-dev https://github.com/kasperhartwich/quickdns/

QuickDNS library

  Sources   Download

MIT

The Requires

 

The Development Requires

dns quickdns