mirarus / teamspeak-cf-dns
TeamSpeak CloudFlare DNS Service
1.0.1
2025-01-07 21:29 UTC
Requires
- php: >=7.3.0
- ext-json: *
- guzzlehttp/guzzle: ^7.9
README
TeamSpeak CloudFlare DNS Service
composer require mirarus/teamspeak-cf-dns
-------------------------------------------------------
require "vendor/autoload.php";
use Mirarus\TeamSpeakCFDNS\Authorization;
use Mirarus\TeamSpeakCFDNS\Dns;
$authorization = new Authorization("--cloudflare--email--", "--cloudflare-apiKey--");
$dns = new Dns($authorization);
$dns->setDomain("mirarus.com.tr");
var_dump($dns->create("mirarus", "127.0.0.1", 9987)); // status => true | false
var_dump($dns->update("mirarus", "127.0.0.1", 9987)); // status => true | false
var_dump($dns->delete("mirarus")); // status => true | false