Download the PHP package mesour/dns-checker without Composer
On this page you can find all versions of the php package mesour/dns-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mesour/dns-checker
More information about mesour/dns-checker
Files in mesour/dns-checker
Package dns-checker
Short Description DNS checker written in PHP for check and compare real DNS records for domain.
License BSD-3-Clause GPL-3.0-or-later
Informations about the package dns-checker
Mesour DNS checker
-
DNS checker written in PHP for check and compare real DNS records for domain.
-
In
AaaaDnsRecord
is IPv6 compressed to short format. - Problem with PHP warning:
dns_get_record(): A temporary server error occurred.
is resolved.
Install
Usage
-
Create instance
\Mesour\DnsChecker\Providers\DnsRecordProvider
: -
Create instance
\Mesour\DnsChecker\DnsChecker
: - Get DNS record set (second parameter
type
have same values as parametertype
for PHP function dns_get_record().):
$dnsRecordSet
contains for example:
DnsRecordSet
- Implements
\ArrayAccess
,\Countable
and\Iterator
.
Check if exist domain record:
Get matching DNS record:
More information in one DnsRecordSet
Difference between two DnsRecordSets
Mock DNS record provider
For mock DNS provider your tests can use Mesour\DnsChecker\StaticDnsRecordProvider
or Mesour\DnsChecker\ArrayDnsRecordProvider
.
Values are as return values of PHP function dns_get_record().
Development
Run command make qa
PhpUnit
Run command make phpunit
PHP Stan
Run command make phpstan
Code style
Run command make cs
Run command make csf
for fix
Parallel lint
Run command make lint