Skip to content

Stopka/openvidu-php-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenVidu php client

Php port of openvidu-java-client, library simplifing openvidu server connection using it's exposed REST API.

Install

Installation via Composer.

composer require stopka/openvidu-php-client "dev-master@dev" 

Usage examples

Usage should be similar to the original java client API.

Create session

$openvidu = new OpenVidu(OPENVIDU_URL, OPENVIDU_SECRET);
$sessionProperties = new SessionPropertiesBuilder();
$session = $openVidu->createSession($sessionProperties->build());

Generate token

$tokenOptions = new TokenOptions\TokenOptionsBuilder();
$tokenOptions->setRole(OpenViduRoleEnum::PUBLISHER)
            ->setData(json_encode($tokenData));
$token = $session->generateToken($tokenOptions->build());

About

Php client for openvidu server

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages