alexeevdv/php-domain-info

v1.0.0 2017-06-05 21:12 UTC

This package is auto-updated.

Last update: 2021-12-29 02:47:06 UTC


README

You can obtain following information about domain:

  • Creation date
  • Expiration date

Installation

Preferred way to install this library is via composer:

composer require alexeevdv/php-domain-info "1.0.0"

Usage:

<?php

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
}