Skip to content

Commit

Permalink
update project name
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Dec 16, 2023
1 parent e54a40b commit 3a89da6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
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')
);
```
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "yggverse/dns",
"name": "yggverse/net",
"type": "library",
"license": "MIT",
"autoload": {
"psr-4": {
"Yggverse\\Dns\\": "src/"
"Yggverse\\Net\\": "src/"
}
},
"require": {}
Expand Down
2 changes: 1 addition & 1 deletion src/Dig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Yggverse\Dns;
namespace Yggverse\Net;

class Dig
{
Expand Down

0 comments on commit 3a89da6

Please sign in to comment.