paravibe/dnslookup

API layer for WhoisXMLAPI DNS Lookup

1.0 2019-11-06 08:27 UTC

This package is auto-updated.

Last update: 2024-11-06 19:34:26 UTC


README

WhoisXMLAPI DNS Lookup API PHP wrapper

Provides simple wrapper for WhoisXMLAPI API.

Total Downloads

Examples

Resolve a DNS record.

$client = new Client();
$client->setToken($token);

$request = new Request($client);
$request->setQuery(['type' => 'A']);

$response = $request->request($domain);
$data = json_decode($response->getBody(), TRUE);

Please note. This wrapper doesn't provide any custom exception handlers.