Php port of openvidu-java-client, library simplifing openvidu server connection using it's exposed REST API.
Installation via Composer.
composer require stopka/openvidu-php-client "dev-master@dev"
Usage should be similar to the original java client API.
$openvidu = new OpenVidu(OPENVIDU_URL, OPENVIDU_SECRET);
$sessionProperties = new SessionPropertiesBuilder();
$session = $openVidu->createSession($sessionProperties->build());
$tokenOptions = new TokenOptions\TokenOptionsBuilder();
$tokenOptions->setRole(OpenViduRoleEnum::PUBLISHER)
->setData(json_encode($tokenData));
$token = $session->generateToken($tokenOptions->build());