deviny / bbb-php-api
Simple PHP API of The BigBlueButton.
Installs: 9 143
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 7
Open Issues: 0
Requires
- php: >=5.3.0
README
Original version available at: https://github.com/petermentzer/bbb-api-php
Re-packed by Devin Yang.
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');