thinkawitch/janus-php-api

PHP API for Janus gateway

v0.0.1 2023-02-10 18:37 UTC

This package is auto-updated.

Last update: 2025-05-12 17:25:22 UTC


README

Simple PHP wrapper for Janus gateway API.

Requirements

  • PHP 8.1+
  • symfony/http-client 6.1+

Installation

composer require thinkawitch/janus-php-api

Limitations

  • synchronous requests http only, no websockets, no rabbitmq

Features

  • Generic api calls
  • Specific calls for textroom, videoroom plugins

Basic usage

use Thinkawitch\JanusApi\JanusHttpClient;
$janus = new JanusHttpClient($apiUrl, $apiSecret);
$janus->createSession();
$textRoom = $janus->attachToTextRoomPlugin($textRoomAdminKey);
$rooms = $textRoom->getRooms();
$textRoom->detach();
$janus->destroySession();

Examples

See the examples directory for more.