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.

Maintainers

Package info

github.com/danog/php-rtc-datachannel

pkg:composer/danog/php-rtc-datachannel

Transparency log

Fund package maintenance!

php-webrtc

Statistics

Installs: 10

Dependents: 2

Suggesters: 0

Stars: 2

Open Issues: 0

v1.0.1005 2026-08-25 17:57 UTC

This package is auto-updated.

Last update: 2026-08-25 18:48:22 UTC


README

PHP Version License

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

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

  • 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

  • PHP ≥ 8.2

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.