PHPackages                             quasarstream/stun - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. quasarstream/stun

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quasarstream/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.

v1.0.1(7mo ago)0783↓50%2BSD-3-ClausePHPPHP ^8.4CI passing

Since May 13Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/PHP-WebRTC/stun)[ Packagist](https://packagist.org/packages/quasarstream/stun)[ Docs](https://www.quasarstream.com/webrtc)[ GitHub Sponsors](https://github.com/php-webrtc)[ RSS](/packages/quasarstream-stun/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (3)Used By (2)

STUN Library for PHP
====================

[](#stun-library-for-php)

[![PHP Version](https://camo.githubusercontent.com/9c2f8ad80d34105266a94c4c06234f8ed18c968d3595039c2d9a7becd1e71c8b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e342d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](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
--------

[](#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
------------

[](#requirements)

- PHP ≥ 8.4

Documentation
-------------

[](#documentation)

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

[PHP WebRTC Documentation](https://www.quasarstream.com/php-webrtc)

Credits
-------

[](#credits)

### Authors

[](#authors)

- **Amin Yazdanpanah**

    - Website: [aminyazdanpanah.com](https://www.aminyazdanpanah.com)
    - Email:
- **Sana Moniri**

    - GtiHub: [sanamoniri](https://github.com/sanamoniri)

Reporting Issues
----------------

[](#reporting-issues)

Found a bug? Please report it on our [issues](https://github.com/php-webrtc/stun/issues).

License
-------

[](#license)

BSD 3-Clause License. See [LICENSE](LICENSE) for details.

References
----------

[](#references)

- [RFC 5389 – Session Traversal Utilities for NAT (STUN)](https://datatracker.ietf.org/doc/html/rfc5389)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance63

Regular maintenance activity

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~146 days

Total

2

Last Release

224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a73aaac753c327bdc55306a38bb829db7a8435ef17a742d94f2917bbf1bfc12e?d=identicon)[aminyazdanpanah](/maintainers/aminyazdanpanah)

---

Tags

phpphp8-4session-traversal-utilities-for-natstunwebrtcWebRTCstunSessionTraversalUtilitiesForNAT

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quasarstream-stun/health.svg)

```
[![Health](https://phpackages.com/badges/quasarstream-stun/health.svg)](https://phpackages.com/packages/quasarstream-stun)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[tomaj/hermes

Simple php background processing library

38251.0k5](/packages/tomaj-hermes)[php-junior/laravel-video-chat

Laravel Video Chat using Socket.IO and WebRTC

82018.1k](/packages/php-junior-laravel-video-chat)[oat-sa/lib-lti1p3-core

OAT LTI 1.3 Core Library

36341.9k10](/packages/oat-sa-lib-lti1p3-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
