https://github.com/kasperhartwich/quickdns
QuickDNS.dk library
https://github.com/kasperhartwich/quickdns
dns quickdns
Last synced: 5 months ago
JSON representation
QuickDNS.dk library
- Host: GitHub
- URL: https://github.com/kasperhartwich/quickdns
- Owner: kasperhartwich
- License: mit
- Created: 2017-03-31T19:19:54.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T22:11:45.000Z (over 2 years ago)
- Last Synced: 2025-07-10T12:14:27.832Z (12 months ago)
- Topics: dns, quickdns
- Language: PHP
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# QuickDNS
[](https://packagist.org/packages/kasperhartwich/quickdns)
For how to use, take a look at the tests for now. This is work-in-progress.
## Requirements
* PHP 8.2 or later
## Installation
You can install the package via composer:
``` bash
composer require kasperhartwich/quickdns
```
### Example
This example creates multiple domains with the same template.
```php
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.
### License
Licensed under MIT License.
### Contribute
You are more than welcome to contribute. Just create a pull request.