1. Go to this page and download the library: Download webas/domain 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/ */
webas / domain example snippets
use Webas\Domain\Connection\ConnectionFactory;
use Webas\Domain\Data\DataLoader;
use Webas\Domain\Whois\Client;
$factory = new ConnectionFactory();
$dataLoader = new DataLoader();
$data = $dataLoader->load(__DIR__.'/data/tld.json');
$client = new Client($factory, $data);
echo $client->query($domainName);
use Webas\Domain\Connection\ConnectionFactory;
use Webas\Domain\Data\DataLoader;
use Webas\Domain\Whois\Client as WhoisClient;
use Webas\Domain\Availability\Client as AvailabilityClient;
$factory = new ConnectionFactory();
$dataLoader = new DataLoader();
$data = $dataLoader->load(__DIR__.'/data/tld.json');
$whoisClient = new WhoisClient($factory, $data);
$client = new AvailabilityClient($whoisClient, $data);
echo $client->isAvailable($domainName);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.