Skip to content

Commit

Permalink
Merge pull request #2 from mesour/patch-02-mesour
Browse files Browse the repository at this point in the history
Updated README.md
  • Loading branch information
mesour authored Jan 20, 2018
2 parents c28f25f + 55e2b98 commit 6f92044
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- [Author](http://mesour.com)

- DNS checker written in PHP for check and compare real DNS records for domain.

- Problem with PHP warning: `dns_get_record(): A temporary server error occurred.` is resolved.

# Install

- With [Composer](https://getcomposer.org)
Expand All @@ -24,7 +28,7 @@ $provider = new \Mesour\DnsChecker\Providers\DnsRecordProvider();
$checker = new \Mesour\DnsChecker\DnsChecker($provider);
```

3. Get DNS record set:
3. Get DNS record set (second parameter `type` have same values as parameter `type` for [PHP function dns_get_record()](http://php.net/manual/en/function.dns-get-record.php).):

```php
$dnsRecordSet = $checker->getDnsRecordSet('example.com', DNS_A + DNS_AAAA);
Expand Down Expand Up @@ -76,7 +80,7 @@ Run command `vendor/bin/tester tests/ -s -c tests/php.ini --colors`
For your own tests can use `Mesour\DnsProvider\StaticDnsRecordProvider`. Values are as return values of [PHP function dns_get_record()](http://php.net/manual/en/function.dns-get-record.php).

```php
$provider = new \Mesour\DnsChecker\Providers\DnsRecordProvider([
$provider = new \Mesour\DnsChecker\Providers\StaticDnsRecordProvider([
[
'host' => 'example.com',
'class' => 'IN',
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mesour/dns-checker",
"description": "Mesour DNS checker.",
"description": "DNS checker written in PHP for check and compare real DNS records for domain.",
"license": ["BSD-3-Clause","GPL-3.0-or-later"],
"keywords": ["DNS","dns checker"],
"authors": [{
Expand Down
5 changes: 0 additions & 5 deletions ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
<property name="searchAnnotations" type="boolean" value="true"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array" value="libs/SmartSelling=>SmartSelling"/>
</properties>
</rule>
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly">
<properties>
<property name="allowFullyQualifiedExceptions" type="boolean" value="true"/>
Expand Down

0 comments on commit 6f92044

Please sign in to comment.