PHP code example of njenga55 / agora
1. Go to this page and download the library: Download njenga55/agora 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/ */
njenga55 / agora example snippets
composer
Agora::sdkToken();
Agora::roomToken();
Agora::taskToken();
Agora::setToken();
Agora::setContext([
'role' => 'ADMINROLE',
'uuid' => 'some-uuid-value-here-especially-for-tasks-and-room'
])
$token = Agora::setContext([
'role' => 'ADMINROLE',
'uuid' => 'some-room--uuid'
])->roomToken()
$token = Agora::setContext([
'role' => 'ADMINROLE',
'uuid' => 'some-task--uuid'
])->taskToken()