thinkawitch / janus-php-api
PHP API for Janus gateway
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/thinkawitch/janus-php-api
Requires
- php: >=8.1
- ext-json: *
- symfony/http-client: ^6.1
This package is auto-updated.
Last update: 2025-10-12 18:18:43 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.