PHP code example of phant / domain-name
1. Go to this page and download the library: Download phant/domain-name library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phant / domain-name example snippets
use Phant\DomainName\Service\DnsRecord;
$dnsRecordDetail = (new DnsRecord())->get(
'domain.ext',
DnsRecord::A
);
$dnsRecordExist = (new DnsRecord())->exist(
'domain.ext',
DnsRecord::A
);
use Phant\DomainName\Service\ServiceProvided;
$isEmailServiceProvider = (new ServiceProvided())->isEmailServiceProvider(
'domain.ext'
);
$isTrashMailBoxService = (new ServiceProvided())->isTrashMailBoxService(
'domain.ext'
);