Search by

danog / php-rtc-dtls

danog

Pure-PHP DTLS 1.2 for WebRTC, powered by phpseclib and Amp v3.

Package info

github.com/danog/php-rtc-dtls

pkg:composer/danog/php-rtc-dtls

Fund package maintenance!

php-webrtc

Statistics

Installs: 626

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 1

2.0.2 2026-09-06 13:26 UTC

README

PHP Version License

A PHP implementation of Datagram Transport Layer Security (DTLS), designed for secure communication over UDP, especially in real-time communication protocols such as WebRTC and SRTP.

About this fork

This is the danog/php-rtc-dtls fork used by MadelineProto. It targets PHP 8.2+, runs on Amp v3 fibers, and uses the pure-PHP DTLS 1.2 engine backed by phpseclib instead of OpenSSL FFI. Its handshake driver includes timer, retransmission, and packet-loss recovery fixes validated against independent DTLS implementations.

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

  • DTLS 1.2 handshake implementation
  • Secure communication over UDP
  • Certificate and key generation
  • Integration-ready with SRTP (Secure RTP)
  • Peer authentication

Requirements

  • PHP ≥ 8.2
  • phpseclib 3 (installed through Composer)

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.