From 8364c0c4129c0be4d7d096ef01c1fefa3b7d7685 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 16 Dec 2023 15:44:08 +0200 Subject: [PATCH] update readme --- README.md | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 825413c..709eb5c 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,35 @@ Network Library for PHP with native Yggdrasil support ## Usage -### Resolve records +### Socket + +#### Check socket is open + +``` +var_dump( + \Yggverse\Net\Socket::isOpen('yo.index', 80) +); +``` + +#### Check host valid + +``` +var_dump( + \Yggverse\Net\Dig::isHost('yo.index') +); +``` + +#### Check port valid + +``` +var_dump( + \Yggverse\Net\Dig::isPort(80) +); +``` + +### Dig + +#### Resolve records ``` var_dump( @@ -16,7 +44,7 @@ var_dump( ); ``` -### Check hostname valid +#### Check hostname valid ``` var_dump( @@ -24,7 +52,7 @@ var_dump( ); ``` -### Check record valid +#### Check record valid ``` var_dump( @@ -32,7 +60,7 @@ var_dump( ); ``` -### Check record value valid +#### Check record value valid ``` var_dump(