2017 © Pedro Peláez
 

library real-domain-validator

Validator of domain names that uses DNS to verify the existance of a domain

image

denismitr/real-domain-validator

Validator of domain names that uses DNS to verify the existance of a domain

  • Friday, July 8, 2016
  • by denismitr
  • Repository
  • 1 Watchers
  • 1 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Validator of domain names

By Denis Mitrofanov, 2016, (*1)

Installation

composer require denismitr/real-domain-validator

Usage

If you are using Laravel, than you can extend the Laravel validator in AppServiceProvider@boot like so:, (*2)

Validator::extend('real_domain', 'Denismitr\Validators\RealDomainValidator@validationCallback');

Otherwise just install, instantiate and use isValidDomain method like that:, (*3)

$validator = new RealDomainValidator();
$result = $validator->isValidDomain("google.com");

Http or https prefixes not a problem - will work as well., (*4)

The Versions

08/07 2016

dev-master

9999999-dev

Validator of domain names that uses DNS to verify the existance of a domain

  Sources   Download

MIT

The Development Requires

08/07 2016

v1.0.0

1.0.0.0

Validator of domain names that uses DNS to verify the existance of a domain

  Sources   Download

MIT

The Development Requires