PHP code example of alexeevdv / php-domain-info
1. Go to this page and download the library: Download alexeevdv/php-domain-info 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/ */
alexeevdv / php-domain-info example snippets
use alexeevdv\domain\info\Provider;
use Exception;
try {
$provider = Provider::getInstance('alexeevdv.ru');
$creationDate = $provider->getCreationDate();
$expirationDate = $provider->getExpirationDate();
} catch (Exception $e) {
// Can't find data provider for domain name
}
bash
composer