rogerthomas84 / ohdns
OhDns is a DNS record lookup library for PHP.
2.0.3
2022-02-03 16:55 UTC
Requires
- php: >=5.6
- ext-ctype: *
- ext-mbstring: *
- rogerthomas84/dtoinflator: >=1.0.0
README
Introduction...
OhDns is a DNS record lookup library for PHP.
Usage...
See test.php
for examples of retrieving DNS records by type.
Additionally, this library provides a more advanced email validation by verifying the MX records associated to the domain actually exist.
<?php $valid = \OhDns\Validators\EmailAddressValidator::isValid( 'joe@example.com' ); if ($valid) { echo ' YES: joe@example.com is a valid email address.'; } else { echo ' NO: joe@example.com is NOT a valid email address.'; }
Composer...
composer require rogerthomas84/ohdns