Skip to content

STUN Library for PHP

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

About

Fork of php-webrtc/stun with FFI made optional, pure-PHP DTLS/SRTP and fixes, as vendored by MadelineProto

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages