danog/php-rtc-vpx

Lazy libvpx FFI bindings for VP8/VP9 encoding and decoding. MadelineProto's PHP 8.2+ fork keeps FFI optional within the modular danog/php-rtc stack.

Maintainers

Package info

github.com/danog/php-rtc-vpx

pkg:composer/danog/php-rtc-vpx

Transparency log

Fund package maintenance!

php-webrtc

Statistics

Installs: 26

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.0 2026-08-25 18:48 UTC

This package is auto-updated.

Last update: 2026-08-26 13:45:59 UTC


README

PHP Version License

Deprecation Notice: This library will be replaced with the AV library in a future update.

A PHP wrapper around the libvpx codec using FFI, providing tools for encoding and decoding VP8/VP9 video streams for WebRTC applications.

About this fork

This is the danog/php-rtc-vpx fork used by MadelineProto. It targets PHP 8.2+, exposes both VP8 and VP9 libvpx interfaces, validates the native library before publishing the binding, and keeps FFI optional when the application only packetizes already-encoded video.

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

  • VP8 and VP9 video codec support
  • Encode raw YUV frames to VPX
  • Decode VPX streams to raw frames
  • FFI bindings to libvpx

Requirements

  • PHP ≥ 8.2
  • FFI and libvpx only when encoding or decoding video
  • 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.