-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ghost
committed
Dec 16, 2023
1 parent
e54a40b
commit 3a89da6
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
# dns-php | ||
# net-php | ||
|
||
DNS Library for PHP with native Yggdrasil support | ||
Network Library for PHP with native Yggdrasil support | ||
|
||
## Install | ||
|
||
`composer require yggverse/dns` | ||
`composer require yggverse/net` | ||
|
||
## Usage | ||
|
||
### Resolve records | ||
|
||
``` | ||
var_dump( | ||
\Yggverse\Dns\Dig::records('yo.index', ['A', 'AAAA']) | ||
\Yggverse\Net\Dig::records('yo.index', ['A', 'AAAA']) | ||
); | ||
``` | ||
|
||
### Check hostname valid | ||
|
||
``` | ||
var_dump( | ||
\Yggverse\Dns\Dig::isHostName('yo.index') | ||
\Yggverse\Net\Dig::isHostName('yo.index') | ||
); | ||
``` | ||
|
||
### Check record valid | ||
|
||
``` | ||
var_dump( | ||
\Yggverse\Dns\Dig::isRecord('A') | ||
\Yggverse\Net\Dig::isRecord('A') | ||
); | ||
``` | ||
|
||
### Check record value valid | ||
|
||
``` | ||
var_dump( | ||
\Yggverse\Dns\Dig::isRecordValue('A', '127.0.0.1') | ||
\Yggverse\Net\Dig::isRecordValue('A', '127.0.0.1') | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
declare(strict_types=1); | ||
|
||
namespace Yggverse\Dns; | ||
namespace Yggverse\Net; | ||
|
||
class Dig | ||
{ | ||
|