danog/php-rtc-stun

A PHP library for STUN (Session Traversal Utilities for NAT) protocol, enabling NAT discovery and reflexive address retrieval for ICE connectivity in WebRTC applications. Fork with FFI made optional and a pure-PHP DTLS/SRTP stack, maintained for MadelineProto.

Maintainers

Package info

github.com/danog/php-rtc-stun

Homepage

pkg:composer/danog/php-rtc-stun

Transparency log

Fund package maintenance!

php-webrtc

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1001 2026-07-26 16:24 UTC

This package is auto-updated.

Last update: 2026-07-26 17:14:07 UTC


README

PHP Version License

A PHP library for STUN (Session Traversal Utilities for NAT) protocol, enabling NAT discovery and reflexive address retrieval for ICE connectivity in WebRTC applications.

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.4

Documentation

This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:

PHP WebRTC Documentation

Credits

Authors

Reporting Issues

Found a bug? Please report it on our issues.

License

BSD 3-Clause License. See LICENSE for details.

References