PHP code example of ansjabar / laravel-agora-token

1. Go to this page and download the library: Download ansjabar/laravel-agora-token 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/ */

    

ansjabar / laravel-agora-token example snippets


\AnsJabar\LaravelAgoraToken\Agora::appToken(); // To get app token
\AnsJabar\LaravelAgoraToken\Agora::userToken($uuid); // To get user token from its uuid
\AnsJabar\LaravelAgoraToken\Agora::userAccountToken("username"); // To get user token from uts username
bash
$ php artisan vendor:publish --provider="AnsJabar\LaravelAgoraToken\AgoraServiceProvider"