mirror of
https://github.com/YGGverse/net-php.git
synced 2026-03-31 17:15:35 +00:00
init Address class
This commit is contained in:
parent
fc2b0822af
commit
b2e0750d1e
2 changed files with 189 additions and 0 deletions
21
README.md
21
README.md
|
|
@ -68,6 +68,27 @@ var_dump(
|
|||
);
|
||||
```
|
||||
|
||||
### Address
|
||||
|
||||
Includes useful methods to work with network addresses
|
||||
|
||||
```
|
||||
$address = new \Yggverse\Net\Address(
|
||||
'http://yo.ygg'
|
||||
);
|
||||
|
||||
var_dump(
|
||||
$address->getScheme() // Just scheme substring
|
||||
);
|
||||
|
||||
var_dump(
|
||||
$address->absolute(
|
||||
'./some/uri'
|
||||
) // return http://yo.ygg/some/uri
|
||||
);
|
||||
```
|
||||
|
||||
## Integrations
|
||||
|
||||
* [Network API with native Yggdrasil/IPv6 support](https://github.com/YGGverse/web-api)
|
||||
* [Yo! Search Crawler for different networks](https://github.com/YGGverse/Yo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue