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.
Fund package maintenance!
Requires
- php: ^8.2
- danog/php-rtc-exception: ^1.0
- evenement/evenement: ^3.0
- psr/log: ^3.0
Requires (Dev)
- phpunit/php-code-coverage: 11.0.x-dev
- phpunit/phpunit: ^11.3
README
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:
Credits
Authors
-
Amin Yazdanpanah
- Website: aminyazdanpanah.com
- Email: github@aminyazdanpanah.com
-
Sana Moniri
- GtiHub: sanamoniri
Reporting Issues
Found a bug? Please report it on our issues.
License
BSD 3-Clause License. See LICENSE for details.