mirror of
https://github.com/danog/stun.git
synced 2024-11-30 04:29:17 +01:00
25 lines
375 B
Markdown
25 lines
375 B
Markdown
# Stun - A pure PHP async STUN implementation
|
|
|
|
Created by Daniil Gentili ([@danog](https://github.com/danog)).
|
|
|
|
This is a pure PHP async STUN implementation.
|
|
|
|
Usage:
|
|
|
|
```bash
|
|
composer require danog/stun
|
|
```
|
|
|
|
And then:
|
|
|
|
```php
|
|
<?php
|
|
|
|
use danog\Stun\StunClient;
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
$stun = new StunClient("stun.l.google.com:19302");
|
|
var_dump($stun->bind());
|
|
```
|