danog / php-rtc-sctp
SCTP for PHP WebRTC data channels, ported to Amp v3 fibers and timers. MadelineProto's PHP 8.2+ fork is part of the modular danog/php-rtc stack.
Fund package maintenance!
Requires
- php: ^8.2
- amphp/amp: ^3.1
- danog/php-rtc-datachannel: ^1.0
- danog/php-rtc-exception: ^1.0
- danog/php-rtc-ice: ^1.0
- danog/php-rtc-sdp: ^1.0
- danog/php-rtc-stats: ^1.0
- symfony/polyfill-mbstring: ^1.32
Requires (Dev)
- mockery/mockery: ^1.6
- phpunit/php-code-coverage: 11.0.x-dev
- phpunit/phpunit: ^11.3
- symfony/phpunit-bridge: 7.3.x-dev
README
A PHP library implementing SCTP (Stream Control Transmission Protocol) for WebRTC data channels. This package supports stream multiplexing, retransmissions, congestion control, and reliable or partially reliable data delivery.
About this fork
This is the danog/php-rtc-sctp fork used by MadelineProto. It targets PHP 8.2+ and replaces ReactPHP promises and timers with blocking Amp v3 fiber APIs and Revolt timers. An SCTP association can also run independently of an RTCDataChannel.
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
- Full support for SCTP packet parsing and serialization
- Stream multiplexing for data channels
- Congestion control and retransmission mechanisms
- Timer-based delivery (RFC 3758)
- Partial reliability support
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.