PHP code example of queents / laravel-agora

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

    

queents / laravel-agora example snippets


Agora::make(id: 1)->uId(rand(999, 1999))->token();

Agora::make(id: 1)->uId(rand(999, 1999))->join()->token();

Agora::make(id: 1)->uId(rand(999, 1999))->join()->audioOnly()->token();

Agora::make(id: 1)->uId(rand(999, 1999))->channel('custom')->token()
bash
php artisan vendor:publish --tag="laravel-agora-config"