thinkawitch / janus-php-api

Simple PHP wrapper for Janus gateway API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

janus-php-api

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.

About

Simple PHP wrapper for Janus gateway API

License:The Unlicense


Languages

Language:PHP 100.0%