danog/stun

Pure PHP async implementation of STUN

0.1.0 2023-09-01 20:33 UTC

This package is auto-updated.

Last update: 2024-11-30 02:29:26 UTC


README

Created by Daniil Gentili (@danog).

This is a pure PHP async STUN implementation.

Usage:

composer require danog/stun

And then:

<?php

use danog\Stun\StunClient;

require 'vendor/autoload.php';

$stun = new StunClient("stun.l.google.com:19302");
var_dump($stun->bind());