A PHP library for Secure RTP (SRTP) packet encryption and decryption using OpenSSL FFI.

Maintainers

👁 aminyazdanpanah

Package info

github.com/PHP-WebRTC/srtp

Homepage

pkg:composer/quasarstream/srtp

Fund package maintenance!

php-webrtc

Statistics

Installs: 1 203

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2025-05-12 13:30 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 263a50ed6a83231cee4897bdf6adf4cfb17dda70

  • Amin Yazdanpanah <github.woop@aminyazdanpanah.com>
  • Sana Moniri <s.mo.woop@quasarstream.com>
  • Quasar Stream Community

srtp

This package is auto-updated.

Last update: 2026-06-12 16:04:04 UTC


README

👁 PHP Version
👁 License

A PHP library for Secure RTP (SRTP) packet encryption and decryption using OpenSSL FFI. It enables secure media transport for WebRTC applications with support for AES encryption and HMAC authentication.

Features

  • AES-GCM and AES-CM encryption for RTP/RTCP packets
  • HMAC-SHA1 authentication
  • Replay protection
  • Interoperable with standard WebRTC implementations

Requirements

  • PHP ≥ 8.4 with FFI extension enabled
  • Srtp development libraries
  • Linux environment (Windows/macOS support planned)

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