danog / stun
Pure PHP async implementation of STUN
0.1.0
2023-09-01 20:33 UTC
Requires
- php-64bit: >=8.1.17
- amphp/socket: ^2.2
- psalm/phar: ^5.15
- webmozart/assert: ^1.11
Requires (Dev)
- amphp/php-cs-fixer-config: v2.x-dev
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());