PHP code example of applooma / server-sdk
1. Go to this page and download the library: Download applooma/server-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
applooma / server-sdk example snippets
$lio = new \AppLooma\AppServerClient(getenv('LIO_API_KEY'), getenv('LIO_API_SECRET'));
$res = $lio->createToken(['roomName' => 'room1', 'identity' => 'user1', 'role' => 'host']);
// $res['token'], $res['wsUrl']