PHPackages                             sourecode/obs-websocket-php - 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. sourecode/obs-websocket-php

ActiveLibrary

sourecode/obs-websocket-php
===========================

PHP implementation of the OBS WebSocket API

3204↓100%[5 issues](https://github.com/SoureCode/obs-websocket-php/issues)PHP

Since May 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/SoureCode/obs-websocket-php)[ Packagist](https://packagist.org/packages/sourecode/obs-websocket-php)[ RSS](/packages/sourecode-obs-websocket-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

OBS WebSocket PHP
=================

[](#obs-websocket-php)

PHP client for [obs-websocket](https://github.com/obsproject/obs-websocket).

Almost everything is [generated](./src/OBS/Protocol) based on the [`protocol.json`](https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.json). Based on that there is a [BaseClient](./src/OBS/BaseClient.php) that handles all the requests and responses. And a [Client](./src/OBS/Client.php) that extends the BaseClient which contains all the available requests.

Under the hood, it uses [phrity/websocket](https://github.com/sirn-se/websocket-php) to connect to the OBS WebSocket.

Features
--------

[](#features)

- Connect to OBS Studio via WebSocket
- Send commands to control OBS Studio
- Listen to OBS Studio events

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

[](#requirements)

- PHP 8.3 or later

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require sourecode/obs-websocket-php
```

Usage
-----

[](#usage)

- [Sending Requests](examples/request.php)
- [Event Loop](examples/events.php)
- [Subscription](examples/subscription.php)

Documentation
-------------

[](#documentation)

Documentation is generated and available under [docs](./docs/index.html).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/21c0769c766e96c15aaf9886ddecfd66dd525e55d754f18ffbe67c9277ffe43a?d=identicon)[chapterjason](/maintainers/chapterjason)

---

Top Contributors

[![chapterjason](https://avatars.githubusercontent.com/u/1337562?v=4)](https://github.com/chapterjason "chapterjason (9 commits)")

### Embed Badge

![Health badge](/badges/sourecode-obs-websocket-php/health.svg)

```
[![Health](https://phpackages.com/badges/sourecode-obs-websocket-php/health.svg)](https://phpackages.com/packages/sourecode-obs-websocket-php)
```

PHPackages © 2026

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