mirror of https://github.com/YGGverse/net-php.git
composernetworkipv6network-apiipv4dnsphp-digdns-phpdns-resolver-apiphp-resolverdignet-phpdns-php-library
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghost
8eba81ae5f
|
1 year ago | |
---|---|---|
src | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
composer.json | 1 year ago |
README.md
net-php
Network Library for PHP with native Yggdrasil support
Install
composer require yggverse/net
Usage
Resolve records
var_dump(
\Yggverse\Net\Dig::records('yo.index', ['A', 'AAAA'])
);
Check hostname valid
var_dump(
\Yggverse\Net\Dig::isHostName('yo.index')
);
Check record valid
var_dump(
\Yggverse\Net\Dig::isRecord('A')
);
Check record value valid
var_dump(
\Yggverse\Net\Dig::isRecordValue('A', '127.0.0.1')
);