A PHP library for handling RTP (Real-time Transport Protocol) packets.

Fund package maintenance!
php-webrtc

v1.0.0 2025-05-14 15:41 UTC

This package is auto-updated.

Last update: 2025-05-14 16:49:05 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