PHPackages                             danog/php-rtc-datachannel - 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. danog/php-rtc-datachannel

ActiveLibrary

danog/php-rtc-datachannel
=========================

A PHP implementation of WebRTC's RTCDataChannel interface. MadelineProto's PHP 8.2+ fork is a Composer-compatible component of the modular danog/php-rtc stack.

v1.0.1005(today)210↑2600%1BSD-3-ClausePHPPHP ^8.2CI passing

Since May 13Pushed todayCompare

[ Source](https://github.com/danog/php-rtc-datachannel)[ Packagist](https://packagist.org/packages/danog/php-rtc-datachannel)[ Docs](https://github.com/danog/php-rtc-datachannel)[ GitHub Sponsors](https://github.com/php-webrtc)[ RSS](/packages/danog-php-rtc-datachannel/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (8)Used By (1)

WebRTC Data Channel Implementation
==================================

[](#webrtc-data-channel-implementation)

[![PHP Version](https://camo.githubusercontent.com/744f8821cc27dec8b0013ade48179731a44eadf4f943e0b1d9ffcb93f80177de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d626c75652e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/2b599ab1ace97388d4375b87919f92781a1a61d016fe640a5c4d15fc365deed1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d626c75652e737667)](LICENSE)

A PHP implementation of WebRTC's RTCDataChannel interface for bidirectional peer-to-peer data communication.

About this fork
---------------

[](#about-this-fork)

This is the `danog/php-rtc-datachannel` PHP 8.2+ fork used by MadelineProto. It is published under the `danog/php-rtc-datachannel` Composer package name.

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

[](#features)

- **Bidirectional communication**: Send and receive arbitrary data between peers
- **Configurable reliability**: Ordered/unordered delivery with retransmission policies
- **Flow control**: Monitor buffered data with threshold notifications
- **Event-driven API**: React to state changes and data arrival
- **Flexible negotiation**: Support for both in-band and out-of-band channel establishment

Requirements
------------

[](#requirements)

- **PHP ≥ 8.2**

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

[](#documentation)

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

[PHP WebRTC Documentation](https://github.com/danog/php-rtc-datachannel)

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/DataChannel/issues).

License
-------

[](#license)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance100

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~78 days

Recently: every ~8 days

Total

7

Last Release

0d ago

PHP version history (2 changes)v1.0.0PHP ^8.4

v1.0.1000PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![danog](https://avatars.githubusercontent.com/u/7339644?v=4)](https://github.com/danog "danog (8 commits)")

---

Tags

WebRTCdatachannel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/danog-php-rtc-datachannel/health.svg)

```
[![Health](https://phpackages.com/badges/danog-php-rtc-datachannel/health.svg)](https://phpackages.com/packages/danog-php-rtc-datachannel)
```

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k382.4M3.7k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

568591.1k63](/packages/ecotone-ecotone)[api-platform/metadata

API Resource-oriented metadata attributes and factories

275.5M254](/packages/api-platform-metadata)[mimmi20/browser-detector

Library to detect Browsers and Devices

49158.4k5](/packages/mimmi20-browser-detector)

PHPackages © 2026

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