Download the PHP package danog/php-rtc-stun without Composer
On this page you can find all versions of the php package danog/php-rtc-stun. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danog/php-rtc-stun
More information about danog/php-rtc-stun
Files in danog/php-rtc-stun
Package php-rtc-stun
Short Description STUN transactions and NAT discovery for PHP, ported to Amp v3 sockets and fibers. MadelineProto's PHP 8.2+ fork supports the modular danog/php-rtc stack.
License BSD-3-Clause
Homepage https://github.com/danog/php-rtc-stun
Informations about the package php-rtc-stun
STUN Library for PHP
A PHP library for STUN (Session Traversal Utilities for NAT) protocol, enabling NAT discovery and reflexive address retrieval for ICE connectivity in WebRTC applications.
About this fork
This is the danog/php-rtc-stun fork used by MadelineProto. It targets PHP 8.2+ and replaces ReactPHP with Amp v3 UDP sockets, blocking fiber APIs, and Revolt retransmission timers. Receive handlers run in separate fibers to avoid deadlocks, and socket addresses remain Amp\Socket\InternetAddress objects throughout the library.
All internal Composer dependencies use their danog/php-rtc-* package names directly, so installing a component selects the maintained danog packages throughout the dependency graph.
Features
- Encode and decode STUN messages
- Support for Binding requests and responses
- Implements STUN message integrity and fingerprinting
- Compatible with ICE and TURN components
Requirements
- PHP ≥ 8.2
Address API
All socket endpoints passed to or returned by the library use Amp\Socket\InternetAddress. This includes local and remote transport addresses, STUN request destinations, response source addresses, receiver callbacks, and address-valued STUN message attributes. Strings and [host, port] arrays are not accepted as socket endpoints.
Documentation
This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:
Credits
Authors
-
Amin Yazdanpanah
- Website: aminyazdanpanah.com
- Email: [email protected]
- Sana Moniri
- GtiHub: sanamoniri
Reporting Issues
Found a bug? Please report it on our issues.
License
BSD 3-Clause License. See LICENSE for details.
References
All versions of php-rtc-stun with dependencies
amphp/amp Version ^3.1.3
amphp/socket Version ^2.4.1
danog/php-rtc-exception Version ^1.1.5
danog/php-rtc-mixin Version ^2.0
ramsey/uuid Version ^4.9.3
psr/log Version ^3.0.2