PHP code example of open20 / amos-videoconference

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

    

open20 / amos-videoconference example snippets



'modules' => [
    'videoconference' => [
        'class' => 'open20\amos\videoconference\AmosVideoconference',
        'rbacEnabled' => false,
		'jitsiDomain' => 'jitsi-server.example.com',
    ],
],


return [
    '@vendor/open20/amos-videoconference/src/migrations',
];

    'urlManager' => [
        'class' => 'yii\web\UrlManager',
    'baseUrl' => '/',
    'hostInfo' => 'http://example.org',
        // Disable index.php
        'showScriptName' => false,
        // Disable r= routes
        'enablePrettyUrl' => true,
        'rules' => array(
            '<module:[\w-]+>/<controller:[\w-]+>/<action:[\w-]+>/<id:\d+>] => <module>/<controller>/<action>',
        ),
    ],
bash
php yii migrate/up --migrationPath=@vendor/open20/amos-videoconference/src/migrations
bash
php yii videoconference/cron/start_video_conference
bash
php yii videoconference/cron/send_email_reminder