danog/php-rtc-rtp

A PHP library for handling RTP (Real-time Transport Protocol) packets. Fork with FFI made optional and a pure-PHP DTLS/SRTP stack, maintained for MadelineProto.

Maintainers

Package info

github.com/danog/php-rtc-rtp

Homepage

pkg:composer/danog/php-rtc-rtp

Transparency log

Fund package maintenance!

php-webrtc

Statistics

Installs: 0

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1001 2026-07-26 16:28 UTC

This package is auto-updated.

Last update: 2026-07-26 17:11:48 UTC


README

PHP Version License

A PHP library for handling RTP (Real-time Transport Protocol) packets. This package provides tools for encoding, decoding, parsing, and analyzing RTP streams—useful for WebRTC, VoIP, and media streaming applications.

Features

  • Encode and decode RTP packets
  • Extract RTP header fields
  • Support for common RTP payload types

Requirements

  • PHP ≥ 8.4 with FFI extension enabled
  • Linux (Windows and macOS support planned for future releases)
  • FFmpeg/libav shared libraries (libavcodec, libavfilter, etc.)
    • Compatible with FFmpeg version 7.1.1
  • libopus development libraries
  • libvpx development libraries
    • Compatible with libvpx version 1.15.0

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