Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost committed Oct 29, 2023
1 parent ceb275c commit 0023814
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@ PHP library for [Yggdrasil](https://github.com/yggdrasil-network/)

#### Get peers

```
\Yggverse\Yggdrasilctl\Yggdrasil::getPeers(
array &$debug = [],
array $require = [
'remote',
'up',
'inbound',
'address',
'port',
'key',
'priority',
'bytes_recvd',
'bytes_sent',
'uptime'
]
)
```

##### Attributes

* `debug` - array of details for each peer that does not match condition bellow
* `require` - array of required fields that peer must to contain or skip in result
* `debug` - optional array of details for each peer that does not match condition bellow
* `require` - optional array of required fields that peer must to contain or skip in result

##### Example

Expand Down

0 comments on commit 0023814

Please sign in to comment.