deviny/bbb-php-api

Simple PHP API of The BigBlueButton.

v1.7 2023-05-14 18:41 UTC

This package is auto-updated.

Last update: 2024-10-14 21:27:49 UTC


README

Original version available at: https://github.com/petermentzer/bbb-api-php

Re-packed by Devin Yang.

https://yty.ccc.tc/demo/

Example

Create Meeting and Join Link.

<?php

use DevinY\BigBlueButtonPhpApi\Bbb;
require __DIR__.'/../vendor/autoload.php';
define("DEFAULT_SECURITY_SALT", "YOUR SALT");
define("DEFAULT_SERVER_BASE_URL", "YOUR SERVER URL");

$meeting_id = time();
$meeting = new Bbb($meeting_id);
$meeting->setName("This is Meeting Name");
echo sprintf("<a href='%s'>Join as Student</a><br/>",$meeting->attendee("John"));
echo sprintf("<a href='%s'>Join as Teacher</a><br/>",$meeting->moderator("Devin"));
?>

Preupload slides

<?php
$meetingObj->slides(['https://ccc.test/p1.pdf','https://ccc.test/p2.pdf']);
?>

Define Different Server

<?php
$meeting = new Bbb("test");
$meeting->setServerBaseUrl('YOUR SERVER URL');
$meeting->setSecret('YOUR SALT');
?>

SetClinetPage by default is BigBlueButton.html

<?php
$meetingObj->setClientPage("ccc.html");
?>

More Available methods

$meeting->setWelcome('Welecome message for all')
    ->setModeratorOnlyMessage('Only teacher can see this messsage');
$meeting->setDuration(20);
$meeting->setRecord("true"); //Old version
$meeting->setAutoStartRecording(false);
$meeting->setAllowStartStopRecording(true);
$meeting->setLogoutUrl('https://YourDomain');