mirror of
https://github.com/YGGverse/nex-php.git
synced 2026-03-31 17:55:31 +00:00
42 lines
No EOL
604 B
Markdown
42 lines
No EOL
604 B
Markdown
# nex-php
|
|
|
|
PHP 8 Library for Nex Protocol
|
|
|
|
## Usage
|
|
|
|
```
|
|
composer require yggverse/nex
|
|
```
|
|
|
|
## Client
|
|
|
|
PHP interface for Nex protocol queries
|
|
|
|
### Request
|
|
|
|
``` php
|
|
$request = new \Yggverse\Nex\Client\Request(
|
|
'nex://nightfall.city/nex/'
|
|
);
|
|
```
|
|
|
|
#### Request::getResponse
|
|
|
|
Execute requested URL and return raw response
|
|
|
|
``` php
|
|
var_dump(
|
|
$request->getResponse()
|
|
);
|
|
```
|
|
|
|
#### Request::setHost
|
|
#### Request::getHost
|
|
#### Request::setPort
|
|
#### Request::getPort
|
|
#### Request::setPath
|
|
#### Request::getPath
|
|
#### Request::setQuery
|
|
#### Request::getQuery
|
|
#### Request::getOptions
|
|
#### Request::setOptions |