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.

Maintainers

Package info

github.com/danog/php-rtc-sctp

pkg:composer/danog/php-rtc-sctp

Transparency log

Fund package maintenance!

php-webrtc

Statistics

Installs: 8

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-08-25 19:13:50 UTC


README

PHP Version License

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:

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.

References