PHPackages                             quasarstream/codecs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. quasarstream/codecs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

quasarstream/codecs
===================

A comprehensive codec implementation package for WebRTC applications, providing audio/video encoding and decoding capabilities.

v1.0.0(1y ago)0756↓59.4%1BSD-3-ClausePHPPHP ^8.4CI passing

Since May 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PHP-WebRTC/codec)[ Packagist](https://packagist.org/packages/quasarstream/codecs)[ Docs](https://www.quasarstream.com/webrtc)[ GitHub Sponsors](https://github.com/php-webrtc)[ RSS](/packages/quasarstream-codecs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (1)

WebRTC Codec Package
====================

[](#webrtc-codec-package)

[![PHP Version](https://camo.githubusercontent.com/80c4564163cef31b2a66baaeb95a5bf4a418bcb5242a5ae707b94c2f4811e742/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d626c7565)](https://camo.githubusercontent.com/80c4564163cef31b2a66baaeb95a5bf4a418bcb5242a5ae707b94c2f4811e742/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d626c7565)[![License](https://camo.githubusercontent.com/70116c1e0ef1b071ba53218604751cc1019b191e72ec5533b05cff02b2324c7e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4253442d626c7565)](https://camo.githubusercontent.com/70116c1e0ef1b071ba53218604751cc1019b191e72ec5533b05cff02b2324c7e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4253442d626c7565)

A comprehensive codec implementation package for WebRTC applications, providing audio/video encoding and decoding capabilities.

Features
--------

[](#features)

### 🎧 Audio Codecs

[](#-audio-codecs)

- **Opus** (encode/decode)
- **PCM A-law** (encode/decode)
- **PCM μ-law** (encode/decode)

### 📹 Video Codecs

[](#-video-codecs)

- **VP8** (encode/decode)
- **H.264** (encode/decode)

### 🛠 Core Functionality

[](#-core-functionality)

- RTP payload packetization/depacketization(H.264 and VP8)
- Dynamic bitrate control
- Frame timestamp management
- Hardware acceleration support
- Thread-optimized encoding/decoding

Requirements
------------

[](#requirements)

Requirements
------------

[](#requirements-1)

- **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
-------------

[](#documentation)

This package is part of the PHP WebRTC library. For complete documentation, examples, and API reference, visit:

[PHP WebRTC Documentation](https://www.quasarstream.com/php-webrtc)

Credits
-------

[](#credits)

### Authors

[](#authors)

- **Amin Yazdanpanah**

    - Website: [aminyazdanpanah.com](https://www.aminyazdanpanah.com)
    - Email:
- **Sana Moniri**

    - GtiHub: [sanamoniri](https://github.com/sanamoniri)

Reporting Issues
----------------

[](#reporting-issues)

Found a bug? Please report it on our [issues](https://github.com/php-webrtc/Codecs/issues).

License
-------

[](#license)

BSD 3-Clause License. See [LICENSE](LICENSE) for details.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance49

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a73aaac753c327bdc55306a38bb829db7a8435ef17a742d94f2917bbf1bfc12e?d=identicon)[aminyazdanpanah](/maintainers/aminyazdanpanah)

---

Tags

codecsh264opuspcmapcmuphpphp8-4vp8webrtcWebRTCcodecsh264opusvp8pcmapcmu

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quasarstream-codecs/health.svg)

```
[![Health](https://phpackages.com/badges/quasarstream-codecs/health.svg)](https://phpackages.com/packages/quasarstream-codecs)
```

###  Alternatives

[php-junior/laravel-video-chat

Laravel Video Chat using Socket.IO and WebRTC

82018.1k](/packages/php-junior-laravel-video-chat)[php-ffmpeg/extras

A set of audio/video formats compatible with PHP-FFMpeg

182287.6k1](/packages/php-ffmpeg-extras)[squareetlabs/laravel-openvidu

Laravel client for controlling your videocalls from your Openvidu server.

2710.8k](/packages/squareetlabs-laravel-openvidu)[werd/ivona-speechcloud-sdk-php

IVONA SpeechCloud SDK for PHP

102.1k](/packages/werd-ivona-speechcloud-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
