quasarstream / srtp
A PHP library for Secure RTP (SRTP) packet encryption and decryption using OpenSSL FFI.
Fund package maintenance!
php-webrtc
Requires
- php: ^8.4
- ext-ffi: *
- quasarstream/exception: ^1.0
- quasarstream/mixin: ^1.0
Requires (Dev)
- phpunit/php-code-coverage: 11.0.x-dev
- phpunit/phpunit: ^11.3
This package is auto-updated.
Last update: 2025-05-12 13:41:00 UTC
README
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:
Credits
Authors
-
Amin Yazdanpanah
aminyazdanpanah.com github@aminyazdanpanah.com -
Sana Moniri
GitHub
Reporting Issues
Found a bug? Please report it on our issues.
License
BSD 3-Clause License. See LICENSE for details.